// Lean compiler output
// Module: Lean.Widget.TaggedText
// Imports: public import Lean.Server.Rpc.Basic
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_spaceUptoLine_x27(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instReprTaggedText_repr(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedTaggedText(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_rewrite_spec__0(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_rewriteM___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_map_spec__0___redArg(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_rewrite_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__5(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_prettyTagged___closed__0;
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_map(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
static lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg___closed__8;
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorIdx(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__27;
lean_object* l_Lean_Json_mkObj(lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__1;
lean_object* l_Array_reverse___redArg(lean_object*);
lean_object* lean_string_utf8_next(lean_object*, lean_object*);
lean_object* l_StateT_get(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Nat_cast___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__0(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_toJson___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__15;
lean_object* l_StateT_instMonad___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_String_quote(lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__32;
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_text_elim___redArg(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4___closed__0;
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_prettyTagged(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__0;
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default;
LEAN_EXPORT lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(lean_object*, uint8_t, lean_object*, lean_object*);
lean_object* lean_string_posof(lean_object*, uint32_t);
static lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4(lean_object*, lean_object*);
lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instInhabitedTaggedText_default___closed__1;
static lean_object* l_Lean_Widget_instInhabitedTaggedText_default___closed__0;
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__13;
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__29;
static lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1___closed__0;
static lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___closed__0;
static lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0;
lean_object* l_StateT_instMonad___lam__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg___closed__1;
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__11;
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__8;
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
lean_object* lean_string_length(lean_object*);
static lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg___closed__0;
LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonTaggedText(lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__2;
lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_rewrite(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Array_isEqvAux___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_byte_size(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_rewriteM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0___closed__0;
lean_object* lean_string_push(lean_object*, uint32_t);
lean_object* l_Array_back_x21___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg___closed__3;
lean_object* l_id___boxed(lean_object*, lean_object*);
lean_object* l_ReaderT_instMonad___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonTaggedText_toJson___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__21;
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_prettyTagged___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_tag_elim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_map_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Json_getStr_x3f(lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__30;
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__14;
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_append_elim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__6;
lean_object* l_StateT_instMonad___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___boxed__const__1;
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__25;
size_t lean_usize_of_nat(lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__2;
lean_object* l_Array_fromJson_x3f___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedTaggedText_default(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__18;
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__22;
lean_object* l_ExceptT_instMonad___lam__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_stripTags___redArg___closed__0;
lean_object* lean_nat_to_int(lean_object*);
uint8_t l_Std_Format_instBEqFlattenAllowability_beq(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__28;
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__23;
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_map___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonTaggedText___redArg(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
LEAN_EXPORT lean_object* l_Lean_Widget_instBEqTaggedText_beq___redArg___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_appendText___redArg___closed__0;
LEAN_EXPORT lean_object* l_panic___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_List_foldl___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_forM___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instReprTaggedText_repr___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__31;
lean_object* l_instInhabitedOfMonad___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg(lean_object*, lean_object*);
lean_object* lean_array_pop(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instBEqTaggedText___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__20;
lean_object* l_Array_Array_repr___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState;
lean_object* l_ExceptT_instMonad___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_map_spec__0(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instReprTaggedText___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default___closed__1;
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_appendTag___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__7;
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState;
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__16;
LEAN_EXPORT uint8_t l_Lean_Widget_instBEqTaggedText_beq(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__1;
static lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg___closed__7;
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__19;
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9;
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__0(lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_appendText(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__12;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_rewrite_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_Widget_instBEqTaggedText_beq___redArg(lean_object*, lean_object*, lean_object*);
lean_object* l_StateT_bind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_ExceptT_pure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(uint32_t, lean_object*, lean_object*);
lean_object* l_Except_orElseLazy___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorIdx___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instBEqTaggedText(lean_object*, lean_object*);
lean_object* l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_ExceptT_bind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_get_borrowed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__5;
lean_object* lean_int_sub(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg___closed__9;
lean_object* l_Lean_instFromJsonJson___lam__0(lean_object*);
static lean_object* l_Lean_Widget_instInhabitedTaggedText___closed__0;
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__3___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__24;
uint8_t l_Std_Format_FlattenAllowability_shouldFlatten(lean_object*);
lean_object* l_Lean_Json_parseTagged(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instReprTaggedText(lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_appendTag(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_ExceptT_instMonad___lam__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2(lean_object*, lean_object*);
lean_object* lean_string_length(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_rewrite_spec__0___redArg(lean_object*, size_t, size_t, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg___closed__6;
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__10;
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_rewrite___redArg(lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg___closed__4;
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM___redArg___lam__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_instRpcEncodable(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2___closed__0;
static lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg___closed__5;
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_forM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_pushn(lean_object*, uint32_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_text_elim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0(lean_object*);
lean_object* lean_array_set(lean_object*, lean_object*, lean_object*);
lean_object* l_Int_toNat(lean_object*);
lean_object* l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instToJsonTaggedText_toJson___redArg___closed__0;
lean_object* l_Repr_addAppParen(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_panic_fn(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg___closed__2;
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__1(uint32_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonTaggedText_toJson(lean_object*, lean_object*, lean_object*);
uint8_t lean_int_dec_lt(lean_object*, lean_object*);
lean_object* lean_nat_sub(lean_object*, lean_object*);
lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
lean_object* l_Array_append___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instBEqTaggedText_beq___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg___closed__10;
static lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default___closed__0;
lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_append_elim___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg(lean_object*, lean_object*, lean_object*);
lean_object* l_ExceptT_instMonad___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__3;
lean_object* l_ExceptT_map(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorIdx___boxed(lean_object*, lean_object*);
size_t lean_usize_add(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM___redArg___lam__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__3(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__26;
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_forM___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_uget(lean_object*, size_t);
size_t lean_array_size(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_appendText___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorIdx___redArg(lean_object*);
lean_object* lean_int_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_stripTags_go(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_stripTags_go___redArg(lean_object*, lean_object*);
uint8_t l_Std_Format_instBEqFlattenBehavior_beq(uint8_t, uint8_t);
lean_object* lean_string_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_tag_elim___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_forM___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_get_size(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_stripTags(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
uint8_t lean_usize_dec_lt(size_t, size_t);
lean_object* lean_nat_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_StateT_map(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_map_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_panic___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__4___closed__0;
static lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___closed__0;
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__4;
static lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__17;
lean_object* l_List_drop___redArg(lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorElim___redArg(lean_object*, lean_object*);
lean_object* l_StateT_instMonad___lam__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1(lean_object*, lean_object*, lean_object*);
lean_object* l_StateT_pure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_stripTags___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorIdx___redArg(lean_object* x_1) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
lean_object* x_2; 
x_2 = lean_unsigned_to_nat(0u);
return x_2;
}
case 1:
{
lean_object* x_3; 
x_3 = lean_unsigned_to_nat(1u);
return x_3;
}
default: 
{
lean_object* x_4; 
x_4 = lean_unsigned_to_nat(2u);
return x_4;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorIdx(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Widget_TaggedText_ctorIdx___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorIdx___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Widget_TaggedText_ctorIdx(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorIdx___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Widget_TaggedText_ctorIdx___redArg(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorElim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 2)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_4);
lean_dec_ref(x_1);
x_5 = lean_apply_2(x_2, x_3, x_4);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_6);
lean_dec_ref(x_1);
x_7 = lean_apply_1(x_2, x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorElim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Widget_TaggedText_ctorElim___redArg(x_4, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_ctorElim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Widget_TaggedText_ctorElim(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_3);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_text_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Widget_TaggedText_ctorElim___redArg(x_3, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_text_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Widget_TaggedText_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_append_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Widget_TaggedText_ctorElim___redArg(x_3, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_append_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Widget_TaggedText_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_tag_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Widget_TaggedText_ctorElim___redArg(x_3, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_tag_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Widget_TaggedText_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_instInhabitedTaggedText_default___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instInhabitedTaggedText_default___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_instInhabitedTaggedText_default___closed__0;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedTaggedText_default(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Widget_instInhabitedTaggedText_default___closed__1;
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_instInhabitedTaggedText___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_instInhabitedTaggedText_default(lean_box(0));
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedTaggedText(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Widget_instInhabitedTaggedText___closed__0;
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instBEqTaggedText_beq___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Lean_Widget_instBEqTaggedText_beq___redArg(x_1, x_2, x_3);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT uint8_t l_Lean_Widget_instBEqTaggedText_beq___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
switch (lean_obj_tag(x_2)) {
case 0:
{
lean_dec_ref(x_1);
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_4);
lean_dec_ref(x_2);
x_5 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_5);
lean_dec_ref(x_3);
x_6 = lean_string_dec_eq(x_4, x_5);
lean_dec_ref(x_5);
lean_dec_ref(x_4);
return x_6;
}
else
{
uint8_t x_7; 
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_7 = 0;
return x_7;
}
}
case 1:
{
if (lean_obj_tag(x_3) == 1)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_8 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_8);
lean_dec_ref(x_2);
x_9 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_9);
lean_dec_ref(x_3);
x_10 = lean_array_get_size(x_8);
x_11 = lean_array_get_size(x_9);
x_12 = lean_nat_dec_eq(x_10, x_11);
lean_dec(x_11);
if (x_12 == 0)
{
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec_ref(x_8);
lean_dec_ref(x_1);
return x_12;
}
else
{
lean_object* x_13; uint8_t x_14; 
x_13 = lean_alloc_closure((void*)(l_Lean_Widget_instBEqTaggedText_beq___redArg___boxed), 3, 1);
lean_closure_set(x_13, 0, x_1);
x_14 = l_Array_isEqvAux___redArg(x_8, x_9, x_13, x_10);
lean_dec_ref(x_9);
lean_dec_ref(x_8);
return x_14;
}
}
else
{
uint8_t x_15; 
lean_dec_ref(x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_15 = 0;
return x_15;
}
}
default: 
{
if (lean_obj_tag(x_3) == 2)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_16 = lean_ctor_get(x_2, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_17);
lean_dec_ref(x_2);
x_18 = lean_ctor_get(x_3, 0);
lean_inc(x_18);
x_19 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_19);
lean_dec_ref(x_3);
lean_inc_ref(x_1);
x_20 = lean_apply_2(x_1, x_16, x_18);
x_21 = lean_unbox(x_20);
if (x_21 == 0)
{
uint8_t x_22; 
lean_dec_ref(x_19);
lean_dec_ref(x_17);
lean_dec_ref(x_1);
x_22 = lean_unbox(x_20);
return x_22;
}
else
{
x_2 = x_17;
x_3 = x_19;
goto _start;
}
}
else
{
uint8_t x_24; 
lean_dec_ref(x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_24 = 0;
return x_24;
}
}
}
}
}
LEAN_EXPORT uint8_t l_Lean_Widget_instBEqTaggedText_beq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = l_Lean_Widget_instBEqTaggedText_beq___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instBEqTaggedText_beq___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = l_Lean_Widget_instBEqTaggedText_beq(x_1, x_2, x_3, x_4);
x_6 = lean_box(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instBEqTaggedText(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_Widget_instBEqTaggedText_beq___boxed), 4, 2);
lean_closure_set(x_3, 0, lean_box(0));
lean_closure_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instBEqTaggedText___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Widget_instBEqTaggedText_beq___boxed), 4, 2);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Widget.TaggedText.text", 27, 27);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(1);
x_2 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__1;
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(2u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Widget_instReprTaggedText_repr___redArg(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Widget.TaggedText.append", 29, 29);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__5;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(1);
x_2 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__6;
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Widget.TaggedText.tag", 26, 26);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__8;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(1);
x_2 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__9;
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instReprTaggedText_repr___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
switch (lean_obj_tag(x_2)) {
case 0:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_16; uint8_t x_17; 
lean_dec_ref(x_1);
x_4 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_4);
if (lean_is_exclusive(x_2)) {
 lean_ctor_release(x_2, 0);
 x_5 = x_2;
} else {
 lean_dec_ref(x_2);
 x_5 = lean_box(0);
}
x_16 = lean_unsigned_to_nat(1024u);
x_17 = lean_nat_dec_le(x_16, x_3);
if (x_17 == 0)
{
lean_object* x_18; 
x_18 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__3;
x_6 = x_18;
goto block_15;
}
else
{
lean_object* x_19; 
x_19 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__4;
x_6 = x_19;
goto block_15;
}
block_15:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; 
x_7 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__2;
x_8 = l_String_quote(x_4);
if (lean_is_scalar(x_5)) {
 x_9 = lean_alloc_ctor(3, 1, 0);
} else {
 x_9 = x_5;
 lean_ctor_set_tag(x_9, 3);
}
lean_ctor_set(x_9, 0, x_8);
x_10 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_10, 0, x_7);
lean_ctor_set(x_10, 1, x_9);
x_11 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_11, 0, x_6);
lean_ctor_set(x_11, 1, x_10);
x_12 = 0;
x_13 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_13, 0, x_11);
lean_ctor_set_uint8(x_13, sizeof(void*)*1, x_12);
x_14 = l_Repr_addAppParen(x_13, x_3);
return x_14;
}
}
case 1:
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_31; uint8_t x_32; 
x_20 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_20);
lean_dec_ref(x_2);
x_21 = lean_alloc_closure((void*)(l_Lean_Widget_instReprTaggedText_repr___redArg___boxed), 3, 1);
lean_closure_set(x_21, 0, x_1);
x_31 = lean_unsigned_to_nat(1024u);
x_32 = lean_nat_dec_le(x_31, x_3);
if (x_32 == 0)
{
lean_object* x_33; 
x_33 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__3;
x_22 = x_33;
goto block_30;
}
else
{
lean_object* x_34; 
x_34 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__4;
x_22 = x_34;
goto block_30;
}
block_30:
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; 
x_23 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__7;
x_24 = l_Array_Array_repr___redArg(x_21, x_20);
x_25 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_25, 0, x_23);
lean_ctor_set(x_25, 1, x_24);
x_26 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_26, 0, x_22);
lean_ctor_set(x_26, 1, x_25);
x_27 = 0;
x_28 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_28, 0, x_26);
lean_ctor_set_uint8(x_28, sizeof(void*)*1, x_27);
x_29 = l_Repr_addAppParen(x_28, x_3);
return x_29;
}
}
default: 
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_52; 
x_35 = lean_ctor_get(x_2, 0);
lean_inc(x_35);
x_36 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_36);
if (lean_is_exclusive(x_2)) {
 lean_ctor_release(x_2, 0);
 lean_ctor_release(x_2, 1);
 x_37 = x_2;
} else {
 lean_dec_ref(x_2);
 x_37 = lean_box(0);
}
x_38 = lean_unsigned_to_nat(1024u);
x_52 = lean_nat_dec_le(x_38, x_3);
if (x_52 == 0)
{
lean_object* x_53; 
x_53 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__3;
x_39 = x_53;
goto block_51;
}
else
{
lean_object* x_54; 
x_54 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__4;
x_39 = x_54;
goto block_51;
}
block_51:
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; 
x_40 = lean_box(1);
x_41 = l_Lean_Widget_instReprTaggedText_repr___redArg___closed__10;
lean_inc_ref(x_1);
x_42 = lean_apply_2(x_1, x_35, x_38);
if (lean_is_scalar(x_37)) {
 x_43 = lean_alloc_ctor(5, 2, 0);
} else {
 x_43 = x_37;
 lean_ctor_set_tag(x_43, 5);
}
lean_ctor_set(x_43, 0, x_41);
lean_ctor_set(x_43, 1, x_42);
x_44 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_44, 0, x_43);
lean_ctor_set(x_44, 1, x_40);
x_45 = l_Lean_Widget_instReprTaggedText_repr___redArg(x_1, x_36, x_38);
x_46 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_46, 0, x_44);
lean_ctor_set(x_46, 1, x_45);
x_47 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_47, 0, x_39);
lean_ctor_set(x_47, 1, x_46);
x_48 = 0;
x_49 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_49, 0, x_47);
lean_ctor_set_uint8(x_49, sizeof(void*)*1, x_48);
x_50 = l_Repr_addAppParen(x_49, x_3);
return x_50;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instReprTaggedText_repr(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Widget_instReprTaggedText_repr___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instReprTaggedText_repr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Widget_instReprTaggedText_repr(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instReprTaggedText(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_Widget_instReprTaggedText_repr___boxed), 4, 2);
lean_closure_set(x_3, 0, lean_box(0));
lean_closure_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instReprTaggedText___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Widget_instReprTaggedText_repr___boxed), 4, 2);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("no inductive constructor matched", 32, 32);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0___closed__0;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0___closed__1;
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("append", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tag", 3, 3);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_8 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1___closed__0;
x_9 = lean_unsigned_to_nat(2u);
x_10 = l_Lean_Json_parseTagged(x_1, x_8, x_9, x_2);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
lean_dec_ref(x_5);
lean_dec(x_4);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; 
x_12 = l_Except_orElseLazy___redArg(x_10, x_3);
lean_dec_ref(x_10);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_10, 0);
lean_inc(x_13);
lean_dec(x_10);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
x_15 = l_Except_orElseLazy___redArg(x_14, x_3);
lean_dec_ref(x_14);
return x_15;
}
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_16 = lean_ctor_get(x_10, 0);
lean_inc(x_16);
lean_dec_ref(x_10);
x_17 = lean_unsigned_to_nat(0u);
lean_inc(x_4);
x_18 = lean_array_get_borrowed(x_4, x_16, x_17);
lean_inc_ref(x_5);
lean_inc(x_18);
x_19 = lean_apply_1(x_5, x_18);
if (lean_obj_tag(x_19) == 0)
{
uint8_t x_20; 
lean_dec(x_16);
lean_dec_ref(x_5);
lean_dec(x_4);
x_20 = !lean_is_exclusive(x_19);
if (x_20 == 0)
{
lean_object* x_21; 
x_21 = l_Except_orElseLazy___redArg(x_19, x_3);
lean_dec_ref(x_19);
return x_21;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_22 = lean_ctor_get(x_19, 0);
lean_inc(x_22);
lean_dec(x_19);
x_23 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_23, 0, x_22);
x_24 = l_Except_orElseLazy___redArg(x_23, x_3);
lean_dec_ref(x_23);
return x_24;
}
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_ctor_get(x_19, 0);
lean_inc(x_25);
lean_dec_ref(x_19);
x_26 = lean_array_get(x_4, x_16, x_6);
lean_dec(x_16);
x_27 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg(x_5, x_26);
if (lean_obj_tag(x_27) == 0)
{
lean_object* x_28; 
lean_dec(x_25);
x_28 = l_Except_orElseLazy___redArg(x_27, x_3);
lean_dec_ref(x_27);
return x_28;
}
else
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_27);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_27, 0);
x_31 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_31, 0, x_25);
lean_ctor_set(x_31, 1, x_30);
lean_ctor_set(x_27, 0, x_31);
x_32 = l_Except_orElseLazy___redArg(x_27, x_3);
lean_dec_ref(x_27);
return x_32;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_33 = lean_ctor_get(x_27, 0);
lean_inc(x_33);
lean_dec(x_27);
x_34 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_34, 0, x_25);
lean_ctor_set(x_34, 1, x_33);
x_35 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_35, 0, x_34);
x_36 = l_Except_orElseLazy___redArg(x_35, x_3);
lean_dec_ref(x_35);
return x_36;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_6);
lean_dec(x_2);
return x_8;
}
}
static lean_object* _init_l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("text", 4, 4);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2___closed__0;
x_8 = l_Lean_Json_parseTagged(x_1, x_7, x_2, x_3);
if (lean_obj_tag(x_8) == 0)
{
uint8_t x_9; 
lean_dec(x_5);
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; 
x_10 = l_Except_orElseLazy___redArg(x_8, x_4);
lean_dec_ref(x_8);
return x_10;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_11 = lean_ctor_get(x_8, 0);
lean_inc(x_11);
lean_dec(x_8);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_11);
x_13 = l_Except_orElseLazy___redArg(x_12, x_4);
lean_dec_ref(x_12);
return x_13;
}
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_14 = lean_ctor_get(x_8, 0);
lean_inc(x_14);
lean_dec_ref(x_8);
x_15 = lean_unsigned_to_nat(0u);
x_16 = lean_array_get(x_5, x_14, x_15);
lean_dec(x_14);
x_17 = l_Lean_Json_getStr_x3f(x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; 
x_19 = l_Except_orElseLazy___redArg(x_17, x_4);
lean_dec_ref(x_17);
return x_19;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_20 = lean_ctor_get(x_17, 0);
lean_inc(x_20);
lean_dec(x_17);
x_21 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_21, 0, x_20);
x_22 = l_Except_orElseLazy___redArg(x_21, x_4);
lean_dec_ref(x_21);
return x_22;
}
}
else
{
uint8_t x_23; 
x_23 = !lean_is_exclusive(x_17);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_24 = lean_ctor_get(x_17, 0);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
lean_ctor_set(x_17, 0, x_25);
x_26 = l_Except_orElseLazy___redArg(x_17, x_4);
lean_dec_ref(x_17);
return x_26;
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
x_29 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_29, 0, x_28);
x_30 = l_Except_orElseLazy___redArg(x_29, x_4);
lean_dec_ref(x_29);
return x_30;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_3);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_3 = lean_alloc_closure((void*)(l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0), 1, 0);
x_4 = lean_box(0);
x_5 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___closed__0;
x_6 = lean_unsigned_to_nat(1u);
x_7 = lean_box(0);
lean_inc_ref(x_1);
lean_inc(x_2);
x_8 = lean_alloc_closure((void*)(l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1___boxed), 7, 6);
lean_closure_set(x_8, 0, x_2);
lean_closure_set(x_8, 1, x_7);
lean_closure_set(x_8, 2, x_3);
lean_closure_set(x_8, 3, x_4);
lean_closure_set(x_8, 4, x_1);
lean_closure_set(x_8, 5, x_6);
lean_inc(x_2);
x_9 = lean_alloc_closure((void*)(l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2___boxed), 6, 5);
lean_closure_set(x_9, 0, x_2);
lean_closure_set(x_9, 1, x_6);
lean_closure_set(x_9, 2, x_7);
lean_closure_set(x_9, 3, x_8);
lean_closure_set(x_9, 4, x_4);
x_10 = l_Lean_Json_parseTagged(x_2, x_5, x_6, x_7);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
lean_dec_ref(x_1);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; 
x_12 = l_Except_orElseLazy___redArg(x_10, x_9);
lean_dec_ref(x_10);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_10, 0);
lean_inc(x_13);
lean_dec(x_10);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
x_15 = l_Except_orElseLazy___redArg(x_14, x_9);
lean_dec_ref(x_14);
return x_15;
}
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_16 = lean_ctor_get(x_10, 0);
lean_inc(x_16);
lean_dec_ref(x_10);
x_17 = lean_alloc_closure((void*)(l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg), 2, 1);
lean_closure_set(x_17, 0, x_1);
x_18 = lean_unsigned_to_nat(0u);
x_19 = lean_array_get(x_4, x_16, x_18);
lean_dec(x_16);
x_20 = l_Array_fromJson_x3f___redArg(x_17, x_19);
if (lean_obj_tag(x_20) == 0)
{
uint8_t x_21; 
x_21 = !lean_is_exclusive(x_20);
if (x_21 == 0)
{
lean_object* x_22; 
x_22 = l_Except_orElseLazy___redArg(x_20, x_9);
lean_dec_ref(x_20);
return x_22;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_20, 0);
lean_inc(x_23);
lean_dec(x_20);
x_24 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_24, 0, x_23);
x_25 = l_Except_orElseLazy___redArg(x_24, x_9);
lean_dec_ref(x_24);
return x_25;
}
}
else
{
uint8_t x_26; 
x_26 = !lean_is_exclusive(x_20);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_27 = lean_ctor_get(x_20, 0);
x_28 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_20, 0, x_28);
x_29 = l_Except_orElseLazy___redArg(x_20, x_9);
lean_dec_ref(x_20);
return x_29;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_30 = lean_ctor_get(x_20, 0);
lean_inc(x_30);
lean_dec(x_20);
x_31 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_31, 0, x_30);
x_32 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_32, 0, x_31);
x_33 = l_Except_orElseLazy___redArg(x_32, x_9);
lean_dec_ref(x_32);
return x_33;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText_fromJson(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_Widget_instFromJsonTaggedText_fromJson), 3, 2);
lean_closure_set(x_3, 0, lean_box(0));
lean_closure_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonTaggedText___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Widget_instFromJsonTaggedText_fromJson), 3, 2);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_instToJsonTaggedText_toJson___redArg___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(2u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonTaggedText_toJson___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_2)) {
case 0:
{
uint8_t x_3; 
lean_dec_ref(x_1);
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2___closed__0;
lean_ctor_set_tag(x_2, 3);
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_2);
x_6 = lean_box(0);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
x_8 = l_Lean_Json_mkObj(x_7);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_9 = lean_ctor_get(x_2, 0);
lean_inc(x_9);
lean_dec(x_2);
x_10 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2___closed__0;
x_11 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_11, 0, x_9);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = lean_box(0);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Lean_Json_mkObj(x_14);
return x_15;
}
}
case 1:
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_16 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_16);
lean_dec_ref(x_2);
x_17 = lean_alloc_closure((void*)(l_Lean_Widget_instToJsonTaggedText_toJson___redArg), 2, 1);
lean_closure_set(x_17, 0, x_1);
x_18 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___closed__0;
x_19 = l_Array_toJson___redArg(x_17, x_16);
x_20 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_20, 0, x_18);
lean_ctor_set(x_20, 1, x_19);
x_21 = lean_box(0);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
x_23 = l_Lean_Json_mkObj(x_22);
return x_23;
}
default: 
{
uint8_t x_24; 
x_24 = !lean_is_exclusive(x_2);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_25 = lean_ctor_get(x_2, 0);
x_26 = lean_ctor_get(x_2, 1);
x_27 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1___closed__0;
lean_inc_ref(x_1);
x_28 = lean_apply_1(x_1, x_25);
x_29 = l_Lean_Widget_instToJsonTaggedText_toJson___redArg(x_1, x_26);
x_30 = l_Lean_Widget_instToJsonTaggedText_toJson___redArg___closed__0;
x_31 = lean_array_push(x_30, x_28);
x_32 = lean_array_push(x_31, x_29);
x_33 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_33, 0, x_32);
lean_ctor_set_tag(x_2, 0);
lean_ctor_set(x_2, 1, x_33);
lean_ctor_set(x_2, 0, x_27);
x_34 = lean_box(0);
x_35 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_35, 0, x_2);
lean_ctor_set(x_35, 1, x_34);
x_36 = l_Lean_Json_mkObj(x_35);
return x_36;
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_37 = lean_ctor_get(x_2, 0);
x_38 = lean_ctor_get(x_2, 1);
lean_inc(x_38);
lean_inc(x_37);
lean_dec(x_2);
x_39 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1___closed__0;
lean_inc_ref(x_1);
x_40 = lean_apply_1(x_1, x_37);
x_41 = l_Lean_Widget_instToJsonTaggedText_toJson___redArg(x_1, x_38);
x_42 = l_Lean_Widget_instToJsonTaggedText_toJson___redArg___closed__0;
x_43 = lean_array_push(x_42, x_40);
x_44 = lean_array_push(x_43, x_41);
x_45 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_45, 0, x_44);
x_46 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_46, 0, x_39);
lean_ctor_set(x_46, 1, x_45);
x_47 = lean_box(0);
x_48 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_48, 0, x_46);
lean_ctor_set(x_48, 1, x_47);
x_49 = l_Lean_Json_mkObj(x_48);
return x_49;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonTaggedText_toJson(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Widget_instToJsonTaggedText_toJson___redArg(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonTaggedText(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_Widget_instToJsonTaggedText_toJson), 3, 2);
lean_closure_set(x_3, 0, lean_box(0));
lean_closure_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonTaggedText___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Widget_instToJsonTaggedText_toJson), 3, 2);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_appendText___redArg___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(2u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_appendText___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_2)) {
case 0:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = lean_string_append(x_4, x_1);
lean_dec_ref(x_1);
lean_ctor_set(x_2, 0, x_5);
return x_2;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_6 = lean_ctor_get(x_2, 0);
lean_inc(x_6);
lean_dec(x_2);
x_7 = lean_string_append(x_6, x_1);
lean_dec_ref(x_1);
x_8 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_8, 0, x_7);
return x_8;
}
}
case 1:
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_2);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_2, 0);
x_11 = l_Lean_Widget_instInhabitedTaggedText___closed__0;
x_12 = l_Array_back_x21___redArg(x_11, x_10);
if (lean_obj_tag(x_12) == 0)
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_14 = lean_ctor_get(x_12, 0);
x_15 = lean_array_get_size(x_10);
x_16 = lean_unsigned_to_nat(1u);
x_17 = lean_nat_sub(x_15, x_16);
lean_dec(x_15);
x_18 = lean_string_append(x_14, x_1);
lean_dec_ref(x_1);
lean_ctor_set(x_12, 0, x_18);
x_19 = lean_array_set(x_10, x_17, x_12);
lean_dec(x_17);
lean_ctor_set(x_2, 0, x_19);
return x_2;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_20 = lean_ctor_get(x_12, 0);
lean_inc(x_20);
lean_dec(x_12);
x_21 = lean_array_get_size(x_10);
x_22 = lean_unsigned_to_nat(1u);
x_23 = lean_nat_sub(x_21, x_22);
lean_dec(x_21);
x_24 = lean_string_append(x_20, x_1);
lean_dec_ref(x_1);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
x_26 = lean_array_set(x_10, x_23, x_25);
lean_dec(x_23);
lean_ctor_set(x_2, 0, x_26);
return x_2;
}
}
else
{
lean_object* x_27; lean_object* x_28; 
lean_dec(x_12);
lean_ctor_set_tag(x_2, 0);
lean_ctor_set(x_2, 0, x_1);
x_27 = lean_array_push(x_10, x_2);
x_28 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_2, 0);
lean_inc(x_29);
lean_dec(x_2);
x_30 = l_Lean_Widget_instInhabitedTaggedText___closed__0;
x_31 = l_Array_back_x21___redArg(x_30, x_29);
if (lean_obj_tag(x_31) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_32 = lean_ctor_get(x_31, 0);
lean_inc_ref(x_32);
if (lean_is_exclusive(x_31)) {
 lean_ctor_release(x_31, 0);
 x_33 = x_31;
} else {
 lean_dec_ref(x_31);
 x_33 = lean_box(0);
}
x_34 = lean_array_get_size(x_29);
x_35 = lean_unsigned_to_nat(1u);
x_36 = lean_nat_sub(x_34, x_35);
lean_dec(x_34);
x_37 = lean_string_append(x_32, x_1);
lean_dec_ref(x_1);
if (lean_is_scalar(x_33)) {
 x_38 = lean_alloc_ctor(0, 1, 0);
} else {
 x_38 = x_33;
}
lean_ctor_set(x_38, 0, x_37);
x_39 = lean_array_set(x_29, x_36, x_38);
lean_dec(x_36);
x_40 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_40, 0, x_39);
return x_40;
}
else
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; 
lean_dec(x_31);
x_41 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_41, 0, x_1);
x_42 = lean_array_push(x_29, x_41);
x_43 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_43, 0, x_42);
return x_43;
}
}
}
default: 
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_44 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_44, 0, x_1);
x_45 = l_Lean_Widget_TaggedText_appendText___redArg___closed__0;
x_46 = lean_array_push(x_45, x_2);
x_47 = lean_array_push(x_46, x_44);
x_48 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_48, 0, x_47);
return x_48;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_appendText(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Widget_TaggedText_appendText___redArg(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_appendTag___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
switch (lean_obj_tag(x_1)) {
case 1:
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_1);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_1, 0);
x_13 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_13, 0, x_2);
lean_ctor_set(x_13, 1, x_3);
x_14 = lean_array_push(x_12, x_13);
lean_ctor_set(x_1, 0, x_14);
return x_1;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_15 = lean_ctor_get(x_1, 0);
lean_inc(x_15);
lean_dec(x_1);
x_16 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_16, 0, x_2);
lean_ctor_set(x_16, 1, x_3);
x_17 = lean_array_push(x_15, x_16);
x_18 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_18, 0, x_17);
return x_18;
}
}
case 0:
{
lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_19 = lean_ctor_get(x_1, 0);
x_20 = l_Lean_Widget_instInhabitedTaggedText_default___closed__0;
x_21 = lean_string_dec_eq(x_19, x_20);
if (x_21 == 0)
{
x_4 = x_1;
goto block_10;
}
else
{
lean_object* x_22; 
lean_dec_ref(x_1);
x_22 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_22, 0, x_2);
lean_ctor_set(x_22, 1, x_3);
return x_22;
}
}
default: 
{
x_4 = x_1;
goto block_10;
}
}
block_10:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_5 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_5, 0, x_2);
lean_ctor_set(x_5, 1, x_3);
x_6 = l_Lean_Widget_TaggedText_appendText___redArg___closed__0;
x_7 = lean_array_push(x_6, x_4);
x_8 = lean_array_push(x_7, x_5);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_8);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_appendTag(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Widget_TaggedText_appendTag___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_map_spec__0___redArg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_3, x_2);
if (x_5 == 0)
{
lean_dec(x_1);
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; 
x_6 = lean_array_uget(x_4, x_3);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_4, x_3, x_7);
lean_inc(x_1);
x_9 = l_Lean_Widget_TaggedText_map___redArg(x_1, x_6);
x_10 = 1;
x_11 = lean_usize_add(x_3, x_10);
x_12 = lean_array_uset(x_8, x_3, x_9);
x_3 = x_11;
x_4 = x_12;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_map___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_2)) {
case 0:
{
uint8_t x_3; 
lean_dec(x_1);
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
return x_2;
}
else
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec(x_2);
x_5 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
case 1:
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_2);
if (x_6 == 0)
{
lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; 
x_7 = lean_ctor_get(x_2, 0);
x_8 = lean_array_size(x_7);
x_9 = 0;
x_10 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_map_spec__0___redArg(x_1, x_8, x_9, x_7);
lean_ctor_set(x_2, 0, x_10);
return x_2;
}
else
{
lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
x_11 = lean_ctor_get(x_2, 0);
lean_inc(x_11);
lean_dec(x_2);
x_12 = lean_array_size(x_11);
x_13 = 0;
x_14 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_map_spec__0___redArg(x_1, x_12, x_13, x_11);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
return x_15;
}
}
default: 
{
uint8_t x_16; 
x_16 = !lean_is_exclusive(x_2);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_17 = lean_ctor_get(x_2, 0);
x_18 = lean_ctor_get(x_2, 1);
lean_inc(x_1);
x_19 = lean_apply_1(x_1, x_17);
x_20 = l_Lean_Widget_TaggedText_map___redArg(x_1, x_18);
lean_ctor_set(x_2, 1, x_20);
lean_ctor_set(x_2, 0, x_19);
return x_2;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_21 = lean_ctor_get(x_2, 0);
x_22 = lean_ctor_get(x_2, 1);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_2);
lean_inc(x_1);
x_23 = lean_apply_1(x_1, x_21);
x_24 = l_Lean_Widget_TaggedText_map___redArg(x_1, x_22);
x_25 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_25, 0, x_23);
lean_ctor_set(x_25, 1, x_24);
return x_25;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_map(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Widget_TaggedText_map___redArg(x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_map_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_map_spec__0___redArg(x_3, x_4, x_5, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_map_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
size_t x_7; size_t x_8; lean_object* x_9; 
x_7 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_8 = lean_unbox_usize(x_5);
lean_dec(x_5);
x_9 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_map_spec__0(x_1, x_2, x_3, x_7, x_8, x_6);
return x_9;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_map_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_map_spec__0___redArg(x_1, x_5, x_6, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM___redArg___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
x_4 = lean_apply_2(x_1, lean_box(0), x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_3);
x_5 = lean_apply_2(x_2, lean_box(0), x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_alloc_closure((void*)(l_Lean_Widget_TaggedText_mapM___redArg___lam__1), 3, 2);
lean_closure_set(x_7, 0, x_6);
lean_closure_set(x_7, 1, x_1);
x_8 = l_Lean_Widget_TaggedText_mapM___redArg(x_2, x_3, x_4);
x_9 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_8, x_7);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
switch (lean_obj_tag(x_3)) {
case 0:
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_4);
lean_dec(x_2);
lean_dec_ref(x_1);
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
lean_dec_ref(x_4);
x_6 = !lean_is_exclusive(x_3);
if (x_6 == 0)
{
lean_object* x_7; 
x_7 = lean_apply_2(x_5, lean_box(0), x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_9, 0, x_8);
x_10 = lean_apply_2(x_5, lean_box(0), x_9);
return x_10;
}
}
case 1:
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; 
x_11 = lean_ctor_get(x_1, 0);
x_12 = lean_ctor_get(x_1, 1);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
x_14 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_14);
lean_dec_ref(x_3);
lean_inc(x_13);
x_15 = lean_alloc_closure((void*)(l_Lean_Widget_TaggedText_mapM___redArg___lam__0), 2, 1);
lean_closure_set(x_15, 0, x_13);
lean_inc_ref(x_1);
x_16 = lean_alloc_closure((void*)(l_Lean_Widget_TaggedText_mapM___redArg), 3, 2);
lean_closure_set(x_16, 0, x_1);
lean_closure_set(x_16, 1, x_2);
x_17 = lean_array_size(x_14);
x_18 = 0;
x_19 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_box(0), lean_box(0), lean_box(0), x_1, x_16, x_17, x_18, x_14);
x_20 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_19, x_15);
return x_20;
}
default: 
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_21 = lean_ctor_get(x_1, 0);
x_22 = lean_ctor_get(x_1, 1);
lean_inc(x_22);
x_23 = lean_ctor_get(x_21, 1);
lean_inc(x_23);
x_24 = lean_ctor_get(x_3, 0);
lean_inc(x_24);
x_25 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_25);
lean_dec_ref(x_3);
lean_inc(x_22);
lean_inc(x_2);
x_26 = lean_alloc_closure((void*)(l_Lean_Widget_TaggedText_mapM___redArg___lam__2), 6, 5);
lean_closure_set(x_26, 0, x_23);
lean_closure_set(x_26, 1, x_1);
lean_closure_set(x_26, 2, x_2);
lean_closure_set(x_26, 3, x_25);
lean_closure_set(x_26, 4, x_22);
x_27 = lean_apply_1(x_2, x_24);
x_28 = lean_apply_4(x_22, lean_box(0), lean_box(0), x_27, x_26);
return x_28;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Widget_TaggedText_mapM___redArg(x_4, x_5, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_forM___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Widget_TaggedText_forM___redArg(x_1, x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_forM___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Widget_TaggedText_forM___redArg(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_forM___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
switch (lean_obj_tag(x_3)) {
case 0:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_4);
lean_dec_ref(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
lean_dec_ref(x_4);
x_6 = lean_box(0);
x_7 = lean_apply_2(x_5, lean_box(0), x_6);
return x_7;
}
case 1:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_8 = lean_ctor_get(x_1, 0);
x_9 = lean_ctor_get(x_8, 1);
x_10 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_10);
lean_dec_ref(x_3);
x_11 = lean_unsigned_to_nat(0u);
x_12 = lean_array_get_size(x_10);
x_13 = lean_box(0);
x_14 = lean_nat_dec_lt(x_11, x_12);
if (x_14 == 0)
{
lean_object* x_15; 
lean_dec(x_12);
lean_dec_ref(x_10);
lean_inc(x_9);
lean_dec(x_2);
lean_dec_ref(x_1);
x_15 = lean_apply_2(x_9, lean_box(0), x_13);
return x_15;
}
else
{
uint8_t x_16; 
x_16 = lean_nat_dec_le(x_12, x_12);
if (x_16 == 0)
{
lean_object* x_17; 
lean_dec(x_12);
lean_dec_ref(x_10);
lean_inc(x_9);
lean_dec(x_2);
lean_dec_ref(x_1);
x_17 = lean_apply_2(x_9, lean_box(0), x_13);
return x_17;
}
else
{
lean_object* x_18; size_t x_19; size_t x_20; lean_object* x_21; 
lean_inc_ref(x_1);
x_18 = lean_alloc_closure((void*)(l_Lean_Widget_TaggedText_forM___redArg___lam__0), 4, 2);
lean_closure_set(x_18, 0, x_1);
lean_closure_set(x_18, 1, x_2);
x_19 = 0;
x_20 = lean_usize_of_nat(x_12);
lean_dec(x_12);
x_21 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), x_1, x_18, x_10, x_19, x_20, x_13);
return x_21;
}
}
}
default: 
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_22 = lean_ctor_get(x_1, 1);
lean_inc(x_22);
x_23 = lean_ctor_get(x_3, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_24);
lean_dec_ref(x_3);
lean_inc_ref(x_24);
lean_inc(x_2);
x_25 = lean_alloc_closure((void*)(l_Lean_Widget_TaggedText_forM___redArg___lam__1), 4, 3);
lean_closure_set(x_25, 0, x_1);
lean_closure_set(x_25, 1, x_2);
lean_closure_set(x_25, 2, x_24);
x_26 = lean_apply_2(x_2, x_23, x_24);
x_27 = lean_apply_4(x_22, lean_box(0), lean_box(0), x_26, x_25);
return x_27;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_forM(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Widget_TaggedText_forM___redArg(x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_rewrite_spec__0___redArg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_3, x_2);
if (x_5 == 0)
{
lean_dec_ref(x_1);
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; 
x_6 = lean_array_uget(x_4, x_3);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_4, x_3, x_7);
lean_inc_ref(x_1);
x_9 = l_Lean_Widget_TaggedText_rewrite___redArg(x_1, x_6);
x_10 = 1;
x_11 = lean_usize_add(x_3, x_10);
x_12 = lean_array_uset(x_8, x_3, x_9);
x_3 = x_11;
x_4 = x_12;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_rewrite___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_2)) {
case 0:
{
uint8_t x_3; 
lean_dec_ref(x_1);
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
return x_2;
}
else
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec(x_2);
x_5 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
case 1:
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_2);
if (x_6 == 0)
{
lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; 
x_7 = lean_ctor_get(x_2, 0);
x_8 = lean_array_size(x_7);
x_9 = 0;
x_10 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_rewrite_spec__0___redArg(x_1, x_8, x_9, x_7);
lean_ctor_set(x_2, 0, x_10);
return x_2;
}
else
{
lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
x_11 = lean_ctor_get(x_2, 0);
lean_inc(x_11);
lean_dec(x_2);
x_12 = lean_array_size(x_11);
x_13 = 0;
x_14 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_rewrite_spec__0___redArg(x_1, x_12, x_13, x_11);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
return x_15;
}
}
default: 
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_16 = lean_ctor_get(x_2, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_17);
lean_dec_ref(x_2);
x_18 = lean_apply_2(x_1, x_16, x_17);
return x_18;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_rewrite(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Widget_TaggedText_rewrite___redArg(x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_rewrite_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_rewrite_spec__0___redArg(x_3, x_4, x_5, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_rewrite_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
size_t x_7; size_t x_8; lean_object* x_9; 
x_7 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_8 = lean_unbox_usize(x_5);
lean_dec(x_5);
x_9 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_rewrite_spec__0(x_1, x_2, x_3, x_7, x_8, x_6);
return x_9;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_rewrite_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Widget_TaggedText_rewrite_spec__0___redArg(x_1, x_5, x_6, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_rewriteM___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
switch (lean_obj_tag(x_3)) {
case 0:
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_4);
lean_dec(x_2);
lean_dec_ref(x_1);
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
lean_dec_ref(x_4);
x_6 = !lean_is_exclusive(x_3);
if (x_6 == 0)
{
lean_object* x_7; 
x_7 = lean_apply_2(x_5, lean_box(0), x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_9, 0, x_8);
x_10 = lean_apply_2(x_5, lean_box(0), x_9);
return x_10;
}
}
case 1:
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; 
x_11 = lean_ctor_get(x_1, 0);
x_12 = lean_ctor_get(x_1, 1);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
x_14 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_14);
lean_dec_ref(x_3);
lean_inc(x_13);
x_15 = lean_alloc_closure((void*)(l_Lean_Widget_TaggedText_mapM___redArg___lam__0), 2, 1);
lean_closure_set(x_15, 0, x_13);
lean_inc_ref(x_1);
x_16 = lean_alloc_closure((void*)(l_Lean_Widget_TaggedText_rewriteM___redArg), 3, 2);
lean_closure_set(x_16, 0, x_1);
lean_closure_set(x_16, 1, x_2);
x_17 = lean_array_size(x_14);
x_18 = 0;
x_19 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_box(0), lean_box(0), lean_box(0), x_1, x_16, x_17, x_18, x_14);
x_20 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_19, x_15);
return x_20;
}
default: 
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
lean_dec_ref(x_1);
x_21 = lean_ctor_get(x_3, 0);
lean_inc(x_21);
x_22 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_22);
lean_dec_ref(x_3);
x_23 = lean_apply_2(x_2, x_21, x_22);
return x_23;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_rewriteM(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Widget_TaggedText_rewriteM___redArg(x_4, x_5, x_6);
return x_7;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__6), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__5___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__4___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__3), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__2___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__1___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__0), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__1;
x_2 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__0;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__5;
x_2 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__4;
x_3 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__3;
x_4 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__2;
x_5 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__7;
x_6 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_4);
lean_ctor_set(x_6, 2, x_3);
lean_ctor_set(x_6, 3, x_2);
lean_ctor_set(x_6, 4, x_1);
return x_6;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__6;
x_2 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__8;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9;
x_2 = lean_alloc_closure((void*)(l_StateT_bind), 8, 3);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, lean_box(0));
lean_closure_set(x_2, 2, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9;
x_2 = lean_alloc_closure((void*)(l_StateT_instMonad___lam__9), 6, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9;
x_2 = lean_alloc_closure((void*)(l_StateT_instMonad___lam__7), 6, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9;
x_2 = lean_alloc_closure((void*)(l_StateT_instMonad___lam__4), 6, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9;
x_2 = lean_alloc_closure((void*)(l_StateT_pure), 6, 3);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, lean_box(0));
lean_closure_set(x_2, 2, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9;
x_2 = lean_alloc_closure((void*)(l_StateT_instMonad___lam__1), 6, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9;
x_2 = lean_alloc_closure((void*)(l_StateT_map), 8, 3);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, lean_box(0));
lean_closure_set(x_2, 2, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__10;
x_2 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__14;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__13;
x_2 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__12;
x_3 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__11;
x_4 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__16;
x_5 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__15;
x_6 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_4);
lean_ctor_set(x_6, 2, x_3);
lean_ctor_set(x_6, 3, x_2);
lean_ctor_set(x_6, 4, x_1);
return x_6;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__18;
x_2 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__17;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_id___boxed), 2, 1);
lean_closure_set(x_1, 0, lean_box(0));
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_6 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_6);
lean_dec_ref(x_1);
x_7 = l_Lean_Widget_TaggedText_mapM___redArg(x_2, x_6, x_4);
x_8 = lean_apply_1(x_7, x_5);
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; 
x_10 = lean_ctor_get(x_8, 0);
x_11 = l_Lean_Widget_instToJsonTaggedText_toJson___redArg(x_3, x_10);
lean_ctor_set(x_8, 0, x_11);
return x_8;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_12 = lean_ctor_get(x_8, 0);
x_13 = lean_ctor_get(x_8, 1);
lean_inc(x_13);
lean_inc(x_12);
lean_dec(x_8);
x_14 = l_Lean_Widget_instToJsonTaggedText_toJson___redArg(x_3, x_12);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_15, 1, x_13);
return x_15;
}
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9;
x_2 = l_ReaderT_instMonad___redArg(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__30() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__21;
x_2 = lean_alloc_closure((void*)(l_ExceptT_bind), 7, 3);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, lean_box(0));
lean_closure_set(x_2, 2, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__21;
x_2 = lean_alloc_closure((void*)(l_ExceptT_instMonad___lam__9), 5, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__21;
x_2 = lean_alloc_closure((void*)(l_ExceptT_instMonad___lam__7), 5, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__21;
x_2 = lean_alloc_closure((void*)(l_ExceptT_instMonad___lam__4), 5, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__28() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__21;
x_2 = lean_alloc_closure((void*)(l_ExceptT_pure), 5, 3);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, lean_box(0));
lean_closure_set(x_2, 2, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__21;
x_2 = lean_alloc_closure((void*)(l_ExceptT_instMonad___lam__1), 5, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__26() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__21;
x_2 = lean_alloc_closure((void*)(l_ExceptT_map), 7, 3);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, lean_box(0));
lean_closure_set(x_2, 2, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__22;
x_2 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__26;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__29() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__25;
x_2 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__24;
x_3 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__23;
x_4 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__28;
x_5 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__27;
x_6 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_4);
lean_ctor_set(x_6, 2, x_3);
lean_ctor_set(x_6, 3, x_2);
lean_ctor_set(x_6, 4, x_1);
return x_6;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__31() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__30;
x_2 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__29;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__32() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instFromJsonJson___lam__0), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg(x_1, x_4);
if (lean_obj_tag(x_6) == 0)
{
uint8_t x_7; 
lean_dec_ref(x_5);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
return x_6;
}
else
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_6, 0);
lean_inc(x_8);
lean_dec(x_6);
x_9 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_9, 0, x_8);
return x_9;
}
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_10 = lean_ctor_get(x_6, 0);
lean_inc(x_10);
lean_dec_ref(x_6);
x_11 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_11);
lean_dec_ref(x_2);
x_12 = l_Lean_Widget_TaggedText_mapM___redArg(x_3, x_11, x_10);
x_13 = lean_apply_1(x_12, x_5);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_instRpcEncodable___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_2 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__19;
x_3 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__20;
lean_inc_ref(x_1);
x_4 = lean_alloc_closure((void*)(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___lam__0), 5, 3);
lean_closure_set(x_4, 0, x_1);
lean_closure_set(x_4, 1, x_2);
lean_closure_set(x_4, 2, x_3);
x_5 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__31;
x_6 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__32;
x_7 = lean_alloc_closure((void*)(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___lam__1), 5, 3);
lean_closure_set(x_7, 0, x_6);
lean_closure_set(x_7, 1, x_1);
lean_closure_set(x_7, 2, x_5);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_4);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_instRpcEncodable(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg(x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_instInhabitedTaggedText_default(lean_box(0));
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_box(0);
x_3 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default___closed__0;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default() {
_start:
{
lean_object* x_1; 
x_1 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default___closed__1;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState() {
_start:
{
lean_object* x_1; 
x_1 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = lean_ctor_get(x_2, 2);
x_6 = lean_box(0);
lean_inc_ref(x_1);
x_7 = l_Lean_Widget_TaggedText_appendText___redArg(x_1, x_4);
x_8 = lean_string_length(x_1);
lean_dec_ref(x_1);
x_9 = lean_nat_add(x_5, x_8);
lean_dec(x_8);
lean_dec(x_5);
lean_ctor_set(x_2, 2, x_9);
lean_ctor_set(x_2, 0, x_7);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_6);
lean_ctor_set(x_10, 1, x_2);
return x_10;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_11 = lean_ctor_get(x_2, 0);
x_12 = lean_ctor_get(x_2, 1);
x_13 = lean_ctor_get(x_2, 2);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_11);
lean_dec(x_2);
x_14 = lean_box(0);
lean_inc_ref(x_1);
x_15 = l_Lean_Widget_TaggedText_appendText___redArg(x_1, x_11);
x_16 = lean_string_length(x_1);
lean_dec_ref(x_1);
x_17 = lean_nat_add(x_13, x_16);
lean_dec(x_16);
lean_dec(x_13);
x_18 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_18, 0, x_15);
lean_ctor_set(x_18, 1, x_12);
lean_ctor_set(x_18, 2, x_17);
x_19 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_19, 0, x_14);
lean_ctor_set(x_19, 1, x_18);
return x_19;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__1(uint32_t x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_string_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\n", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___boxed__const__1() {
_start:
{
uint32_t x_1; lean_object* x_2; 
x_1 = 32;
x_2 = lean_box_uint32(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint32_t x_3; lean_object* x_4; 
x_3 = lean_unbox_uint32(x_1);
lean_dec(x_1);
x_4 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__1(x_3, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = lean_ctor_get(x_2, 2);
lean_dec(x_5);
x_6 = lean_box(0);
x_7 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_8 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___boxed__const__1;
x_9 = lean_alloc_closure((void*)(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__1___boxed), 2, 1);
lean_closure_set(x_9, 0, x_8);
lean_inc(x_1);
x_10 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop(lean_box(0), x_9, x_1, x_7);
x_11 = l_Lean_Widget_TaggedText_appendText___redArg(x_10, x_4);
lean_ctor_set(x_2, 2, x_1);
lean_ctor_set(x_2, 0, x_11);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_6);
lean_ctor_set(x_12, 1, x_2);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_13 = lean_ctor_get(x_2, 0);
x_14 = lean_ctor_get(x_2, 1);
lean_inc(x_14);
lean_inc(x_13);
lean_dec(x_2);
x_15 = lean_box(0);
x_16 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_17 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___boxed__const__1;
x_18 = lean_alloc_closure((void*)(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__1___boxed), 2, 1);
lean_closure_set(x_18, 0, x_17);
lean_inc(x_1);
x_19 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop(lean_box(0), x_18, x_1, x_16);
x_20 = l_Lean_Widget_TaggedText_appendText___redArg(x_19, x_13);
x_21 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_14);
lean_ctor_set(x_21, 2, x_1);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_15);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_1, 2);
lean_inc(x_3);
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_instInhabitedTaggedText_default___closed__0;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = lean_ctor_get(x_2, 1);
x_6 = lean_ctor_get(x_2, 2);
x_7 = lean_box(0);
x_8 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4___closed__0;
lean_inc(x_6);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_6);
lean_ctor_set(x_9, 1, x_4);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_9);
x_11 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_5);
lean_ctor_set(x_2, 1, x_11);
lean_ctor_set(x_2, 0, x_8);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_7);
lean_ctor_set(x_12, 1, x_2);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_13 = lean_ctor_get(x_2, 0);
x_14 = lean_ctor_get(x_2, 1);
x_15 = lean_ctor_get(x_2, 2);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_dec(x_2);
x_16 = lean_box(0);
x_17 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4___closed__0;
lean_inc(x_15);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_15);
lean_ctor_set(x_18, 1, x_13);
x_19 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_19, 0, x_1);
lean_ctor_set(x_19, 1, x_18);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_14);
x_21 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_21, 0, x_17);
lean_ctor_set(x_21, 1, x_20);
lean_ctor_set(x_21, 2, x_15);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_16);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = lean_ctor_get(x_2, 1);
lean_inc(x_3);
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = !lean_is_exclusive(x_3);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_6 = lean_ctor_get(x_3, 0);
x_7 = lean_ctor_get(x_3, 1);
lean_ctor_set(x_3, 1, x_6);
lean_ctor_set(x_3, 0, x_4);
x_8 = l_Lean_Widget_TaggedText_appendTag___redArg(x_7, x_3, x_1);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_9 = lean_ctor_get(x_3, 0);
x_10 = lean_ctor_get(x_3, 1);
lean_inc(x_10);
lean_inc(x_9);
lean_dec(x_3);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_4);
lean_ctor_set(x_11, 1, x_9);
x_12 = l_Lean_Widget_TaggedText_appendTag___redArg(x_10, x_11, x_1);
return x_12;
}
}
}
static lean_object* _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_ctor_get(x_3, 1);
x_7 = lean_box(0);
x_8 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_2);
lean_inc(x_6);
x_9 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_6, x_6, x_2, x_8);
x_10 = l_List_drop___redArg(x_2, x_6);
lean_dec(x_6);
x_11 = l_List_foldl___redArg(x_1, x_5, x_9);
lean_ctor_set(x_3, 1, x_10);
lean_ctor_set(x_3, 0, x_11);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_7);
lean_ctor_set(x_12, 1, x_3);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_13 = lean_ctor_get(x_3, 0);
x_14 = lean_ctor_get(x_3, 1);
x_15 = lean_ctor_get(x_3, 2);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_dec(x_3);
x_16 = lean_box(0);
x_17 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_2);
lean_inc(x_14);
x_18 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_14, x_14, x_2, x_17);
x_19 = l_List_drop___redArg(x_2, x_14);
lean_dec(x_14);
x_20 = l_List_foldl___redArg(x_1, x_13, x_18);
x_21 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_19);
lean_ctor_set(x_21, 2, x_15);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_16);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
}
static lean_object* _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9;
x_2 = lean_alloc_closure((void*)(l_StateT_get), 4, 3);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, lean_box(0));
lean_closure_set(x_2, 2, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__3___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__3(x_1, x_2);
lean_dec_ref(x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__0), 2, 0);
x_2 = lean_alloc_closure((void*)(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2), 2, 0);
x_3 = lean_alloc_closure((void*)(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__3___boxed), 2, 0);
x_4 = lean_alloc_closure((void*)(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4), 2, 0);
x_5 = lean_alloc_closure((void*)(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__5), 2, 0);
x_6 = lean_alloc_closure((void*)(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6), 3, 1);
lean_closure_set(x_6, 0, x_5);
x_7 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9;
x_8 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___closed__0;
x_9 = lean_alloc_closure((void*)(l_StateT_bind), 8, 7);
lean_closure_set(x_9, 0, lean_box(0));
lean_closure_set(x_9, 1, lean_box(0));
lean_closure_set(x_9, 2, x_7);
lean_closure_set(x_9, 3, lean_box(0));
lean_closure_set(x_9, 4, lean_box(0));
lean_closure_set(x_9, 5, x_8);
lean_closure_set(x_9, 6, x_3);
x_10 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_2);
lean_ctor_set(x_10, 2, x_9);
lean_ctor_set(x_10, 3, x_4);
lean_ctor_set(x_10, 4, x_6);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Nat_cast___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(uint32_t x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = lean_unsigned_to_nat(0u);
x_5 = lean_nat_dec_eq(x_2, x_4);
if (x_5 == 1)
{
lean_dec(x_2);
return x_3;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_6 = lean_unsigned_to_nat(1u);
x_7 = lean_nat_sub(x_2, x_6);
lean_dec(x_2);
x_8 = lean_string_push(x_3, x_1);
x_2 = x_7;
x_3 = x_8;
goto _start;
}
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_prettyTagged___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_box(0);
x_3 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4___closed__0;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
return x_1;
}
else
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_3 = lean_ctor_get(x_2, 0);
lean_inc(x_3);
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 1);
lean_inc(x_5);
lean_dec_ref(x_2);
x_6 = lean_ctor_get(x_3, 0);
lean_inc(x_6);
lean_dec(x_3);
x_7 = !lean_is_exclusive(x_4);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_8 = lean_ctor_get(x_4, 0);
x_9 = lean_ctor_get(x_4, 1);
lean_ctor_set(x_4, 1, x_8);
lean_ctor_set(x_4, 0, x_6);
x_10 = l_Lean_Widget_TaggedText_appendTag___redArg(x_9, x_4, x_1);
x_1 = x_10;
x_2 = x_5;
goto _start;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_12 = lean_ctor_get(x_4, 0);
x_13 = lean_ctor_get(x_4, 1);
lean_inc(x_13);
lean_inc(x_12);
lean_dec(x_4);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_6);
lean_ctor_set(x_14, 1, x_12);
x_15 = l_Lean_Widget_TaggedText_appendTag___redArg(x_13, x_14, x_1);
x_1 = x_15;
x_2 = x_5;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_alloc_ctor(0, 2, 1);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_4);
lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_2);
x_6 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_3);
return x_6;
}
}
static lean_object* _init_l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" ", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_12; uint8_t x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_27; lean_object* x_28; uint8_t x_29; uint8_t x_41; 
x_12 = lean_ctor_get(x_5, 2);
x_13 = 0;
x_14 = l_Std_Format_instBEqFlattenBehavior_beq(x_1, x_13);
x_15 = lean_alloc_ctor(0, 0, 1);
lean_ctor_set_uint8(x_15, 0, x_14);
lean_inc(x_2);
x_16 = lean_alloc_ctor(0, 2, 1);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_2);
lean_ctor_set_uint8(x_16, sizeof(void*)*2, x_1);
x_17 = lean_box(0);
x_18 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_18, 0, x_16);
lean_ctor_set(x_18, 1, x_17);
x_19 = lean_nat_sub(x_4, x_12);
lean_inc(x_19);
lean_inc(x_12);
x_20 = l___private_Init_Data_Format_Basic_0__Std_Format_spaceUptoLine_x27(x_18, x_12, x_19);
x_27 = lean_ctor_get_uint8(x_20, sizeof(void*)*1);
x_28 = lean_ctor_get(x_20, 0);
lean_inc(x_28);
x_41 = lean_nat_dec_lt(x_19, x_28);
if (x_41 == 0)
{
x_29 = x_27;
goto block_40;
}
else
{
x_29 = x_41;
goto block_40;
}
block_11:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_7 = lean_alloc_ctor(0, 0, 1);
lean_ctor_set_uint8(x_7, 0, x_6);
x_8 = lean_alloc_ctor(0, 2, 1);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_2);
lean_ctor_set_uint8(x_8, sizeof(void*)*2, x_1);
x_9 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_3);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_9);
lean_ctor_set(x_10, 1, x_5);
return x_10;
}
block_26:
{
uint8_t x_22; 
x_22 = lean_ctor_get_uint8(x_20, sizeof(void*)*1 + 1);
lean_dec_ref(x_20);
if (x_22 == 0)
{
lean_object* x_23; uint8_t x_24; 
x_23 = lean_ctor_get(x_21, 0);
lean_inc(x_23);
lean_dec_ref(x_21);
x_24 = lean_nat_dec_le(x_23, x_19);
lean_dec(x_19);
lean_dec(x_23);
x_6 = x_24;
goto block_11;
}
else
{
uint8_t x_25; 
lean_dec_ref(x_21);
lean_dec(x_19);
x_25 = 0;
x_6 = x_25;
goto block_11;
}
}
block_40:
{
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; uint8_t x_32; 
x_30 = lean_nat_sub(x_19, x_28);
lean_inc(x_12);
lean_inc(x_3);
x_31 = l___private_Init_Data_Format_Basic_0__Std_Format_spaceUptoLine_x27(x_3, x_12, x_30);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; 
x_33 = lean_ctor_get(x_31, 0);
x_34 = lean_nat_add(x_28, x_33);
lean_dec(x_33);
lean_dec(x_28);
lean_ctor_set(x_31, 0, x_34);
x_21 = x_31;
goto block_26;
}
else
{
uint8_t x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_35 = lean_ctor_get_uint8(x_31, sizeof(void*)*1);
x_36 = lean_ctor_get_uint8(x_31, sizeof(void*)*1 + 1);
x_37 = lean_ctor_get(x_31, 0);
lean_inc(x_37);
lean_dec(x_31);
x_38 = lean_nat_add(x_28, x_37);
lean_dec(x_37);
lean_dec(x_28);
x_39 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_39, 0, x_38);
lean_ctor_set_uint8(x_39, sizeof(void*)*1, x_35);
lean_ctor_set_uint8(x_39, sizeof(void*)*1 + 1, x_36);
x_21 = x_39;
goto block_26;
}
}
else
{
lean_dec(x_28);
lean_inc_ref(x_20);
x_21 = x_20;
goto block_26;
}
}
}
}
static lean_object* _init_l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0;
x_2 = lean_string_length(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unreachable", 11, 11);
return x_1;
}
}
static lean_object* _init_l_panic___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__4___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__19;
x_3 = l_instInhabitedOfMonad___redArg(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = l_panic___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__4___closed__0;
x_4 = lean_panic_fn(x_3, x_1);
x_5 = lean_apply_1(x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_box(0);
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_ctor_get(x_2, 0);
x_7 = lean_ctor_get(x_6, 1);
lean_inc(x_7);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_2, 1);
lean_inc(x_8);
lean_dec_ref(x_2);
x_2 = x_8;
goto _start;
}
else
{
lean_object* x_10; uint8_t x_11; 
lean_inc(x_6);
x_10 = lean_ctor_get(x_7, 0);
lean_inc(x_10);
x_11 = !lean_is_exclusive(x_2);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; 
x_12 = lean_ctor_get(x_2, 1);
x_13 = lean_ctor_get(x_2, 0);
lean_dec(x_13);
x_14 = lean_ctor_get(x_6, 0);
lean_inc(x_14);
x_15 = lean_ctor_get_uint8(x_6, sizeof(void*)*2);
lean_dec(x_6);
x_16 = !lean_is_exclusive(x_7);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; uint8_t x_19; 
x_17 = lean_ctor_get(x_7, 1);
x_18 = lean_ctor_get(x_7, 0);
lean_dec(x_18);
x_19 = !lean_is_exclusive(x_10);
if (x_19 == 0)
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_87; 
x_20 = lean_ctor_get(x_10, 0);
x_21 = lean_ctor_get(x_10, 1);
x_22 = lean_ctor_get(x_10, 2);
switch (lean_obj_tag(x_20)) {
case 0:
{
uint8_t x_108; 
lean_free_object(x_10);
lean_dec(x_21);
lean_free_object(x_7);
lean_free_object(x_2);
x_108 = !lean_is_exclusive(x_3);
if (x_108 == 0)
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_109 = lean_ctor_get(x_3, 0);
x_110 = lean_ctor_get(x_3, 1);
x_111 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_110);
x_112 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_110, x_110, x_22, x_111);
x_113 = l_List_drop___redArg(x_22, x_110);
lean_dec(x_110);
x_114 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_109, x_112);
lean_ctor_set(x_3, 1, x_113);
lean_ctor_set(x_3, 0, x_114);
x_115 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_115;
goto _start;
}
else
{
lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; 
x_117 = lean_ctor_get(x_3, 0);
x_118 = lean_ctor_get(x_3, 1);
x_119 = lean_ctor_get(x_3, 2);
lean_inc(x_119);
lean_inc(x_118);
lean_inc(x_117);
lean_dec(x_3);
x_120 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_118);
x_121 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_118, x_118, x_22, x_120);
x_122 = l_List_drop___redArg(x_22, x_118);
lean_dec(x_118);
x_123 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_117, x_121);
x_124 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_124, 0, x_123);
lean_ctor_set(x_124, 1, x_122);
lean_ctor_set(x_124, 2, x_119);
x_125 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_125;
x_3 = x_124;
goto _start;
}
}
case 1:
{
lean_free_object(x_10);
lean_free_object(x_7);
lean_free_object(x_2);
if (x_15 == 0)
{
uint8_t x_127; 
x_127 = l_Std_Format_FlattenAllowability_shouldFlatten(x_14);
if (x_127 == 0)
{
uint8_t x_128; 
x_128 = !lean_is_exclusive(x_3);
if (x_128 == 0)
{
lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint32_t x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; 
x_129 = lean_ctor_get(x_3, 0);
x_130 = lean_ctor_get(x_3, 1);
x_131 = lean_ctor_get(x_3, 2);
lean_dec(x_131);
x_132 = l_Int_toNat(x_21);
lean_dec(x_21);
x_133 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_134 = 32;
lean_inc(x_132);
x_135 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_134, x_132, x_133);
x_136 = l_Lean_Widget_TaggedText_appendText___redArg(x_135, x_129);
x_137 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_130);
x_138 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_130, x_130, x_22, x_137);
x_139 = l_List_drop___redArg(x_22, x_130);
lean_dec(x_130);
x_140 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_136, x_138);
lean_ctor_set(x_3, 2, x_132);
lean_ctor_set(x_3, 1, x_139);
lean_ctor_set(x_3, 0, x_140);
x_141 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_141;
goto _start;
}
else
{
lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; uint32_t x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; 
x_143 = lean_ctor_get(x_3, 0);
x_144 = lean_ctor_get(x_3, 1);
lean_inc(x_144);
lean_inc(x_143);
lean_dec(x_3);
x_145 = l_Int_toNat(x_21);
lean_dec(x_21);
x_146 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_147 = 32;
lean_inc(x_145);
x_148 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_147, x_145, x_146);
x_149 = l_Lean_Widget_TaggedText_appendText___redArg(x_148, x_143);
x_150 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_144);
x_151 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_144, x_144, x_22, x_150);
x_152 = l_List_drop___redArg(x_22, x_144);
lean_dec(x_144);
x_153 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_149, x_151);
x_154 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_154, 0, x_153);
lean_ctor_set(x_154, 1, x_152);
lean_ctor_set(x_154, 2, x_145);
x_155 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_155;
x_3 = x_154;
goto _start;
}
}
else
{
uint8_t x_157; 
lean_dec(x_21);
x_157 = !lean_is_exclusive(x_3);
if (x_157 == 0)
{
lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; 
x_158 = lean_ctor_get(x_3, 0);
x_159 = lean_ctor_get(x_3, 1);
x_160 = lean_ctor_get(x_3, 2);
x_161 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0;
x_162 = l_Lean_Widget_TaggedText_appendText___redArg(x_161, x_158);
x_163 = lean_unsigned_to_nat(1u);
x_164 = lean_nat_add(x_160, x_163);
lean_dec(x_160);
x_165 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_159);
x_166 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_159, x_159, x_22, x_165);
x_167 = l_List_drop___redArg(x_22, x_159);
lean_dec(x_159);
x_168 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_162, x_166);
lean_ctor_set(x_3, 2, x_164);
lean_ctor_set(x_3, 1, x_167);
lean_ctor_set(x_3, 0, x_168);
x_169 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_169;
goto _start;
}
else
{
lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; 
x_171 = lean_ctor_get(x_3, 0);
x_172 = lean_ctor_get(x_3, 1);
x_173 = lean_ctor_get(x_3, 2);
lean_inc(x_173);
lean_inc(x_172);
lean_inc(x_171);
lean_dec(x_3);
x_174 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0;
x_175 = l_Lean_Widget_TaggedText_appendText___redArg(x_174, x_171);
x_176 = lean_unsigned_to_nat(1u);
x_177 = lean_nat_add(x_173, x_176);
lean_dec(x_173);
x_178 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_172);
x_179 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_172, x_172, x_22, x_178);
x_180 = l_List_drop___redArg(x_22, x_172);
lean_dec(x_172);
x_181 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_175, x_179);
x_182 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_182, 0, x_181);
lean_ctor_set(x_182, 1, x_180);
lean_ctor_set(x_182, 2, x_177);
x_183 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_183;
x_3 = x_182;
goto _start;
}
}
}
else
{
lean_object* x_185; uint8_t x_186; 
x_185 = l_Int_toNat(x_21);
lean_dec(x_21);
x_186 = l_Std_Format_FlattenAllowability_shouldFlatten(x_14);
lean_dec(x_14);
if (x_186 == 0)
{
uint8_t x_187; 
x_187 = !lean_is_exclusive(x_3);
if (x_187 == 0)
{
lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint32_t x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
x_188 = lean_ctor_get(x_3, 0);
x_189 = lean_ctor_get(x_3, 1);
x_190 = lean_ctor_get(x_3, 2);
lean_dec(x_190);
x_191 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_192 = 32;
lean_inc(x_185);
x_193 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_192, x_185, x_191);
x_194 = l_Lean_Widget_TaggedText_appendText___redArg(x_193, x_188);
x_195 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_189);
x_196 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_189, x_189, x_22, x_195);
x_197 = l_List_drop___redArg(x_22, x_189);
lean_dec(x_189);
x_198 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_194, x_196);
lean_ctor_set(x_3, 2, x_185);
lean_ctor_set(x_3, 1, x_197);
lean_ctor_set(x_3, 0, x_198);
x_199 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_17, x_12, x_1, x_3);
x_200 = lean_ctor_get(x_199, 0);
lean_inc(x_200);
x_201 = lean_ctor_get(x_199, 1);
lean_inc(x_201);
lean_dec_ref(x_199);
x_2 = x_200;
x_3 = x_201;
goto _start;
}
else
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; uint32_t x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_203 = lean_ctor_get(x_3, 0);
x_204 = lean_ctor_get(x_3, 1);
lean_inc(x_204);
lean_inc(x_203);
lean_dec(x_3);
x_205 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_206 = 32;
lean_inc(x_185);
x_207 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_206, x_185, x_205);
x_208 = l_Lean_Widget_TaggedText_appendText___redArg(x_207, x_203);
x_209 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_204);
x_210 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_204, x_204, x_22, x_209);
x_211 = l_List_drop___redArg(x_22, x_204);
lean_dec(x_204);
x_212 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_208, x_210);
x_213 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_213, 0, x_212);
lean_ctor_set(x_213, 1, x_211);
lean_ctor_set(x_213, 2, x_185);
x_214 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_17, x_12, x_1, x_213);
x_215 = lean_ctor_get(x_214, 0);
lean_inc(x_215);
x_216 = lean_ctor_get(x_214, 1);
lean_inc(x_216);
lean_dec_ref(x_214);
x_2 = x_215;
x_3 = x_216;
goto _start;
}
}
else
{
lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; 
x_218 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0;
x_219 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__1;
x_220 = lean_nat_sub(x_1, x_219);
lean_inc(x_12);
lean_inc(x_17);
x_221 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_17, x_12, x_220, x_3);
lean_dec(x_220);
x_222 = lean_ctor_get(x_221, 0);
lean_inc(x_222);
if (lean_obj_tag(x_222) == 1)
{
lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; 
x_223 = lean_ctor_get(x_222, 0);
x_224 = lean_ctor_get(x_221, 1);
lean_inc(x_224);
lean_dec_ref(x_221);
x_225 = lean_ctor_get(x_223, 0);
x_226 = l_Std_Format_FlattenAllowability_shouldFlatten(x_225);
if (x_226 == 0)
{
uint8_t x_227; 
lean_dec_ref(x_222);
x_227 = !lean_is_exclusive(x_224);
if (x_227 == 0)
{
lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; uint32_t x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; 
x_228 = lean_ctor_get(x_224, 0);
x_229 = lean_ctor_get(x_224, 1);
x_230 = lean_ctor_get(x_224, 2);
lean_dec(x_230);
x_231 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_232 = 32;
lean_inc(x_185);
x_233 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_232, x_185, x_231);
x_234 = l_Lean_Widget_TaggedText_appendText___redArg(x_233, x_228);
x_235 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_229);
x_236 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_229, x_229, x_22, x_235);
x_237 = l_List_drop___redArg(x_22, x_229);
lean_dec(x_229);
x_238 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_234, x_236);
lean_ctor_set(x_224, 2, x_185);
lean_ctor_set(x_224, 1, x_237);
lean_ctor_set(x_224, 0, x_238);
x_239 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_17, x_12, x_1, x_224);
x_240 = lean_ctor_get(x_239, 0);
lean_inc(x_240);
x_241 = lean_ctor_get(x_239, 1);
lean_inc(x_241);
lean_dec_ref(x_239);
x_2 = x_240;
x_3 = x_241;
goto _start;
}
else
{
lean_object* x_243; lean_object* x_244; lean_object* x_245; uint32_t x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; 
x_243 = lean_ctor_get(x_224, 0);
x_244 = lean_ctor_get(x_224, 1);
lean_inc(x_244);
lean_inc(x_243);
lean_dec(x_224);
x_245 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_246 = 32;
lean_inc(x_185);
x_247 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_246, x_185, x_245);
x_248 = l_Lean_Widget_TaggedText_appendText___redArg(x_247, x_243);
x_249 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_244);
x_250 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_244, x_244, x_22, x_249);
x_251 = l_List_drop___redArg(x_22, x_244);
lean_dec(x_244);
x_252 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_248, x_250);
x_253 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_253, 0, x_252);
lean_ctor_set(x_253, 1, x_251);
lean_ctor_set(x_253, 2, x_185);
x_254 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_17, x_12, x_1, x_253);
x_255 = lean_ctor_get(x_254, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_254, 1);
lean_inc(x_256);
lean_dec_ref(x_254);
x_2 = x_255;
x_3 = x_256;
goto _start;
}
}
else
{
uint8_t x_258; 
lean_dec(x_185);
lean_dec(x_17);
lean_dec(x_12);
x_258 = !lean_is_exclusive(x_224);
if (x_258 == 0)
{
lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; 
x_259 = lean_ctor_get(x_224, 0);
x_260 = lean_ctor_get(x_224, 1);
x_261 = lean_ctor_get(x_224, 2);
x_262 = l_Lean_Widget_TaggedText_appendText___redArg(x_218, x_259);
x_263 = lean_unsigned_to_nat(1u);
x_264 = lean_nat_add(x_261, x_263);
lean_dec(x_261);
x_265 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_260);
x_266 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_260, x_260, x_22, x_265);
x_267 = l_List_drop___redArg(x_22, x_260);
lean_dec(x_260);
x_268 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_262, x_266);
lean_ctor_set(x_224, 2, x_264);
lean_ctor_set(x_224, 1, x_267);
lean_ctor_set(x_224, 0, x_268);
x_2 = x_222;
x_3 = x_224;
goto _start;
}
else
{
lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; 
x_270 = lean_ctor_get(x_224, 0);
x_271 = lean_ctor_get(x_224, 1);
x_272 = lean_ctor_get(x_224, 2);
lean_inc(x_272);
lean_inc(x_271);
lean_inc(x_270);
lean_dec(x_224);
x_273 = l_Lean_Widget_TaggedText_appendText___redArg(x_218, x_270);
x_274 = lean_unsigned_to_nat(1u);
x_275 = lean_nat_add(x_272, x_274);
lean_dec(x_272);
x_276 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_271);
x_277 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_271, x_271, x_22, x_276);
x_278 = l_List_drop___redArg(x_22, x_271);
lean_dec(x_271);
x_279 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_273, x_277);
x_280 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_280, 0, x_279);
lean_ctor_set(x_280, 1, x_278);
lean_ctor_set(x_280, 2, x_275);
x_2 = x_222;
x_3 = x_280;
goto _start;
}
}
}
else
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; 
lean_dec(x_222);
lean_dec(x_185);
lean_dec(x_22);
lean_dec(x_17);
lean_dec(x_12);
x_282 = lean_ctor_get(x_221, 1);
lean_inc(x_282);
lean_dec_ref(x_221);
x_283 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__2;
x_284 = l_panic___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__4(x_283, x_282);
return x_284;
}
}
}
}
case 2:
{
uint8_t x_285; uint8_t x_286; 
lean_free_object(x_10);
lean_free_object(x_7);
lean_free_object(x_2);
x_285 = lean_ctor_get_uint8(x_20, 0);
lean_dec_ref(x_20);
x_286 = l_Std_Format_FlattenAllowability_shouldFlatten(x_14);
if (x_286 == 0)
{
x_87 = x_286;
goto block_107;
}
else
{
if (x_285 == 0)
{
x_87 = x_286;
goto block_107;
}
else
{
goto block_86;
}
}
}
case 3:
{
uint8_t x_287; 
lean_free_object(x_2);
x_287 = !lean_is_exclusive(x_20);
if (x_287 == 0)
{
lean_object* x_288; uint32_t x_289; lean_object* x_290; lean_object* x_291; uint8_t x_292; 
x_288 = lean_ctor_get(x_20, 0);
x_289 = 10;
lean_inc_ref(x_288);
x_290 = lean_string_posof(x_288, x_289);
x_291 = lean_string_utf8_byte_size(x_288);
x_292 = lean_nat_dec_eq(x_290, x_291);
if (x_292 == 0)
{
uint8_t x_293; 
x_293 = !lean_is_exclusive(x_3);
if (x_293 == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; uint32_t x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; 
x_294 = lean_ctor_get(x_3, 0);
x_295 = lean_ctor_get(x_3, 2);
lean_dec(x_295);
x_296 = lean_unsigned_to_nat(0u);
x_297 = lean_string_utf8_extract(x_288, x_296, x_290);
x_298 = l_Lean_Widget_TaggedText_appendText___redArg(x_297, x_294);
x_299 = l_Int_toNat(x_21);
x_300 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_301 = 32;
lean_inc(x_299);
x_302 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_301, x_299, x_300);
x_303 = l_Lean_Widget_TaggedText_appendText___redArg(x_302, x_298);
lean_ctor_set(x_3, 2, x_299);
lean_ctor_set(x_3, 0, x_303);
x_304 = lean_string_utf8_next(x_288, x_290);
lean_dec(x_290);
x_305 = lean_string_utf8_extract(x_288, x_304, x_291);
lean_dec(x_291);
lean_dec(x_304);
lean_dec_ref(x_288);
lean_ctor_set(x_20, 0, x_305);
x_306 = lean_box(1);
x_307 = l_Std_Format_instBEqFlattenAllowability_beq(x_14, x_306);
if (x_307 == 0)
{
lean_object* x_308; lean_object* x_309; lean_object* x_310; 
lean_dec(x_14);
x_308 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_7, x_12, x_1, x_3);
x_309 = lean_ctor_get(x_308, 0);
lean_inc(x_309);
x_310 = lean_ctor_get(x_308, 1);
lean_inc(x_310);
lean_dec_ref(x_308);
x_2 = x_309;
x_3 = x_310;
goto _start;
}
else
{
lean_object* x_312; 
x_312 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_7);
x_2 = x_312;
goto _start;
}
}
else
{
lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; uint32_t x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; uint8_t x_328; 
x_314 = lean_ctor_get(x_3, 0);
x_315 = lean_ctor_get(x_3, 1);
lean_inc(x_315);
lean_inc(x_314);
lean_dec(x_3);
x_316 = lean_unsigned_to_nat(0u);
x_317 = lean_string_utf8_extract(x_288, x_316, x_290);
x_318 = l_Lean_Widget_TaggedText_appendText___redArg(x_317, x_314);
x_319 = l_Int_toNat(x_21);
x_320 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_321 = 32;
lean_inc(x_319);
x_322 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_321, x_319, x_320);
x_323 = l_Lean_Widget_TaggedText_appendText___redArg(x_322, x_318);
x_324 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_324, 0, x_323);
lean_ctor_set(x_324, 1, x_315);
lean_ctor_set(x_324, 2, x_319);
x_325 = lean_string_utf8_next(x_288, x_290);
lean_dec(x_290);
x_326 = lean_string_utf8_extract(x_288, x_325, x_291);
lean_dec(x_291);
lean_dec(x_325);
lean_dec_ref(x_288);
lean_ctor_set(x_20, 0, x_326);
x_327 = lean_box(1);
x_328 = l_Std_Format_instBEqFlattenAllowability_beq(x_14, x_327);
if (x_328 == 0)
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; 
lean_dec(x_14);
x_329 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_7, x_12, x_1, x_324);
x_330 = lean_ctor_get(x_329, 0);
lean_inc(x_330);
x_331 = lean_ctor_get(x_329, 1);
lean_inc(x_331);
lean_dec_ref(x_329);
x_2 = x_330;
x_3 = x_331;
goto _start;
}
else
{
lean_object* x_333; 
x_333 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_7);
x_2 = x_333;
x_3 = x_324;
goto _start;
}
}
}
else
{
uint8_t x_335; 
lean_dec(x_291);
lean_dec(x_290);
lean_free_object(x_20);
lean_free_object(x_10);
lean_dec(x_21);
lean_free_object(x_7);
x_335 = !lean_is_exclusive(x_3);
if (x_335 == 0)
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; 
x_336 = lean_ctor_get(x_3, 0);
x_337 = lean_ctor_get(x_3, 1);
x_338 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_288);
x_339 = l_Lean_Widget_TaggedText_appendText___redArg(x_288, x_336);
x_340 = lean_string_length(x_288);
lean_dec_ref(x_288);
x_341 = lean_nat_add(x_338, x_340);
lean_dec(x_340);
lean_dec(x_338);
x_342 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_337);
x_343 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_337, x_337, x_22, x_342);
x_344 = l_List_drop___redArg(x_22, x_337);
lean_dec(x_337);
x_345 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_339, x_343);
lean_ctor_set(x_3, 2, x_341);
lean_ctor_set(x_3, 1, x_344);
lean_ctor_set(x_3, 0, x_345);
x_346 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_346;
goto _start;
}
else
{
lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; 
x_348 = lean_ctor_get(x_3, 0);
x_349 = lean_ctor_get(x_3, 1);
x_350 = lean_ctor_get(x_3, 2);
lean_inc(x_350);
lean_inc(x_349);
lean_inc(x_348);
lean_dec(x_3);
lean_inc_ref(x_288);
x_351 = l_Lean_Widget_TaggedText_appendText___redArg(x_288, x_348);
x_352 = lean_string_length(x_288);
lean_dec_ref(x_288);
x_353 = lean_nat_add(x_350, x_352);
lean_dec(x_352);
lean_dec(x_350);
x_354 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_349);
x_355 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_349, x_349, x_22, x_354);
x_356 = l_List_drop___redArg(x_22, x_349);
lean_dec(x_349);
x_357 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_351, x_355);
x_358 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_358, 0, x_357);
lean_ctor_set(x_358, 1, x_356);
lean_ctor_set(x_358, 2, x_353);
x_359 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_359;
x_3 = x_358;
goto _start;
}
}
}
else
{
lean_object* x_361; uint32_t x_362; lean_object* x_363; lean_object* x_364; uint8_t x_365; 
x_361 = lean_ctor_get(x_20, 0);
lean_inc(x_361);
lean_dec(x_20);
x_362 = 10;
lean_inc_ref(x_361);
x_363 = lean_string_posof(x_361, x_362);
x_364 = lean_string_utf8_byte_size(x_361);
x_365 = lean_nat_dec_eq(x_363, x_364);
if (x_365 == 0)
{
lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; uint32_t x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; uint8_t x_382; 
x_366 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_366);
x_367 = lean_ctor_get(x_3, 1);
lean_inc(x_367);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_368 = x_3;
} else {
 lean_dec_ref(x_3);
 x_368 = lean_box(0);
}
x_369 = lean_unsigned_to_nat(0u);
x_370 = lean_string_utf8_extract(x_361, x_369, x_363);
x_371 = l_Lean_Widget_TaggedText_appendText___redArg(x_370, x_366);
x_372 = l_Int_toNat(x_21);
x_373 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_374 = 32;
lean_inc(x_372);
x_375 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_374, x_372, x_373);
x_376 = l_Lean_Widget_TaggedText_appendText___redArg(x_375, x_371);
if (lean_is_scalar(x_368)) {
 x_377 = lean_alloc_ctor(0, 3, 0);
} else {
 x_377 = x_368;
}
lean_ctor_set(x_377, 0, x_376);
lean_ctor_set(x_377, 1, x_367);
lean_ctor_set(x_377, 2, x_372);
x_378 = lean_string_utf8_next(x_361, x_363);
lean_dec(x_363);
x_379 = lean_string_utf8_extract(x_361, x_378, x_364);
lean_dec(x_364);
lean_dec(x_378);
lean_dec_ref(x_361);
x_380 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_380, 0, x_379);
lean_ctor_set(x_10, 0, x_380);
x_381 = lean_box(1);
x_382 = l_Std_Format_instBEqFlattenAllowability_beq(x_14, x_381);
if (x_382 == 0)
{
lean_object* x_383; lean_object* x_384; lean_object* x_385; 
lean_dec(x_14);
x_383 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_7, x_12, x_1, x_377);
x_384 = lean_ctor_get(x_383, 0);
lean_inc(x_384);
x_385 = lean_ctor_get(x_383, 1);
lean_inc(x_385);
lean_dec_ref(x_383);
x_2 = x_384;
x_3 = x_385;
goto _start;
}
else
{
lean_object* x_387; 
x_387 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_7);
x_2 = x_387;
x_3 = x_377;
goto _start;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; 
lean_dec(x_364);
lean_dec(x_363);
lean_free_object(x_10);
lean_dec(x_21);
lean_free_object(x_7);
x_389 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_389);
x_390 = lean_ctor_get(x_3, 1);
lean_inc(x_390);
x_391 = lean_ctor_get(x_3, 2);
lean_inc(x_391);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_392 = x_3;
} else {
 lean_dec_ref(x_3);
 x_392 = lean_box(0);
}
lean_inc_ref(x_361);
x_393 = l_Lean_Widget_TaggedText_appendText___redArg(x_361, x_389);
x_394 = lean_string_length(x_361);
lean_dec_ref(x_361);
x_395 = lean_nat_add(x_391, x_394);
lean_dec(x_394);
lean_dec(x_391);
x_396 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_390);
x_397 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_390, x_390, x_22, x_396);
x_398 = l_List_drop___redArg(x_22, x_390);
lean_dec(x_390);
x_399 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_393, x_397);
if (lean_is_scalar(x_392)) {
 x_400 = lean_alloc_ctor(0, 3, 0);
} else {
 x_400 = x_392;
}
lean_ctor_set(x_400, 0, x_399);
lean_ctor_set(x_400, 1, x_398);
lean_ctor_set(x_400, 2, x_395);
x_401 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_401;
x_3 = x_400;
goto _start;
}
}
}
case 4:
{
lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_free_object(x_2);
x_403 = lean_ctor_get(x_20, 0);
lean_inc(x_403);
x_404 = lean_ctor_get(x_20, 1);
lean_inc(x_404);
lean_dec_ref(x_20);
x_405 = lean_int_add(x_21, x_403);
lean_dec(x_403);
lean_dec(x_21);
lean_ctor_set(x_10, 1, x_405);
lean_ctor_set(x_10, 0, x_404);
x_406 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_7);
x_2 = x_406;
goto _start;
}
case 5:
{
lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; 
x_408 = lean_ctor_get(x_20, 0);
lean_inc(x_408);
x_409 = lean_ctor_get(x_20, 1);
lean_inc(x_409);
lean_dec_ref(x_20);
x_410 = lean_unsigned_to_nat(0u);
lean_inc(x_21);
lean_ctor_set(x_10, 2, x_410);
lean_ctor_set(x_10, 0, x_408);
x_411 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_411, 0, x_409);
lean_ctor_set(x_411, 1, x_21);
lean_ctor_set(x_411, 2, x_22);
lean_ctor_set(x_7, 0, x_411);
lean_ctor_set(x_2, 1, x_7);
lean_ctor_set(x_2, 0, x_10);
x_412 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_2);
x_2 = x_412;
goto _start;
}
case 6:
{
lean_object* x_414; uint8_t x_415; uint8_t x_416; 
lean_free_object(x_2);
x_414 = lean_ctor_get(x_20, 0);
lean_inc(x_414);
x_415 = lean_ctor_get_uint8(x_20, sizeof(void*)*1);
lean_dec_ref(x_20);
x_416 = l_Std_Format_FlattenAllowability_shouldFlatten(x_14);
if (x_416 == 0)
{
lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; 
lean_ctor_set(x_10, 0, x_414);
x_417 = lean_box(0);
lean_ctor_set(x_7, 1, x_417);
x_418 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_419 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_415, x_7, x_418, x_1, x_3);
x_420 = lean_ctor_get(x_419, 0);
lean_inc(x_420);
x_421 = lean_ctor_get(x_419, 1);
lean_inc(x_421);
lean_dec_ref(x_419);
x_2 = x_420;
x_3 = x_421;
goto _start;
}
else
{
lean_object* x_423; 
lean_ctor_set(x_10, 0, x_414);
x_423 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_7);
x_2 = x_423;
goto _start;
}
}
default: 
{
lean_object* x_425; lean_object* x_426; uint8_t x_427; 
x_425 = lean_ctor_get(x_20, 0);
lean_inc(x_425);
x_426 = lean_ctor_get(x_20, 1);
lean_inc(x_426);
lean_dec_ref(x_20);
x_427 = !lean_is_exclusive(x_3);
if (x_427 == 0)
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_428 = lean_ctor_get(x_3, 0);
x_429 = lean_ctor_get(x_3, 1);
x_430 = lean_ctor_get(x_3, 2);
x_431 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4___closed__0;
lean_inc(x_430);
x_432 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_432, 0, x_430);
lean_ctor_set(x_432, 1, x_428);
x_433 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_433, 0, x_425);
lean_ctor_set(x_433, 1, x_432);
lean_ctor_set(x_7, 1, x_429);
lean_ctor_set(x_7, 0, x_433);
lean_ctor_set(x_3, 1, x_7);
lean_ctor_set(x_3, 0, x_431);
x_434 = lean_unsigned_to_nat(1u);
x_435 = lean_nat_add(x_22, x_434);
lean_dec(x_22);
lean_ctor_set(x_10, 2, x_435);
lean_ctor_set(x_10, 0, x_426);
lean_ctor_set(x_2, 1, x_17);
lean_ctor_set(x_2, 0, x_10);
x_436 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_2);
x_2 = x_436;
goto _start;
}
else
{
lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; 
x_438 = lean_ctor_get(x_3, 0);
x_439 = lean_ctor_get(x_3, 1);
x_440 = lean_ctor_get(x_3, 2);
lean_inc(x_440);
lean_inc(x_439);
lean_inc(x_438);
lean_dec(x_3);
x_441 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4___closed__0;
lean_inc(x_440);
x_442 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_442, 0, x_440);
lean_ctor_set(x_442, 1, x_438);
x_443 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_443, 0, x_425);
lean_ctor_set(x_443, 1, x_442);
lean_ctor_set(x_7, 1, x_439);
lean_ctor_set(x_7, 0, x_443);
x_444 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_444, 0, x_441);
lean_ctor_set(x_444, 1, x_7);
lean_ctor_set(x_444, 2, x_440);
x_445 = lean_unsigned_to_nat(1u);
x_446 = lean_nat_add(x_22, x_445);
lean_dec(x_22);
lean_ctor_set(x_10, 2, x_446);
lean_ctor_set(x_10, 0, x_426);
lean_ctor_set(x_2, 1, x_17);
lean_ctor_set(x_2, 0, x_10);
x_447 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_2);
x_2 = x_447;
x_3 = x_444;
goto _start;
}
}
}
block_86:
{
uint8_t x_23; 
x_23 = !lean_is_exclusive(x_3);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; 
x_24 = lean_ctor_get(x_3, 0);
x_25 = lean_ctor_get(x_3, 1);
x_26 = lean_ctor_get(x_3, 2);
lean_inc(x_26);
x_27 = lean_nat_to_int(x_26);
x_28 = lean_int_dec_lt(x_27, x_21);
if (x_28 == 0)
{
lean_object* x_29; lean_object* x_30; uint32_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
lean_dec(x_27);
lean_dec(x_26);
x_29 = l_Int_toNat(x_21);
lean_dec(x_21);
x_30 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_31 = 32;
lean_inc(x_29);
x_32 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_31, x_29, x_30);
x_33 = l_Lean_Widget_TaggedText_appendText___redArg(x_32, x_24);
x_34 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_25);
x_35 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_25, x_25, x_22, x_34);
x_36 = l_List_drop___redArg(x_22, x_25);
lean_dec(x_25);
x_37 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_33, x_35);
lean_ctor_set(x_3, 2, x_29);
lean_ctor_set(x_3, 1, x_36);
lean_ctor_set(x_3, 0, x_37);
x_38 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_38;
goto _start;
}
else
{
lean_object* x_40; uint32_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_40 = l_Lean_Widget_instInhabitedTaggedText_default___closed__0;
x_41 = 32;
x_42 = lean_int_sub(x_21, x_27);
lean_dec(x_27);
lean_dec(x_21);
x_43 = l_Int_toNat(x_42);
lean_dec(x_42);
x_44 = lean_string_pushn(x_40, x_41, x_43);
lean_inc_ref(x_44);
x_45 = l_Lean_Widget_TaggedText_appendText___redArg(x_44, x_24);
x_46 = lean_string_length(x_44);
lean_dec_ref(x_44);
x_47 = lean_nat_add(x_26, x_46);
lean_dec(x_46);
lean_dec(x_26);
x_48 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_25);
x_49 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_25, x_25, x_22, x_48);
x_50 = l_List_drop___redArg(x_22, x_25);
lean_dec(x_25);
x_51 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_45, x_49);
lean_ctor_set(x_3, 2, x_47);
lean_ctor_set(x_3, 1, x_50);
lean_ctor_set(x_3, 0, x_51);
x_52 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_52;
goto _start;
}
}
else
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; 
x_54 = lean_ctor_get(x_3, 0);
x_55 = lean_ctor_get(x_3, 1);
x_56 = lean_ctor_get(x_3, 2);
lean_inc(x_56);
lean_inc(x_55);
lean_inc(x_54);
lean_dec(x_3);
lean_inc(x_56);
x_57 = lean_nat_to_int(x_56);
x_58 = lean_int_dec_lt(x_57, x_21);
if (x_58 == 0)
{
lean_object* x_59; lean_object* x_60; uint32_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; 
lean_dec(x_57);
lean_dec(x_56);
x_59 = l_Int_toNat(x_21);
lean_dec(x_21);
x_60 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_61 = 32;
lean_inc(x_59);
x_62 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_61, x_59, x_60);
x_63 = l_Lean_Widget_TaggedText_appendText___redArg(x_62, x_54);
x_64 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_55);
x_65 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_55, x_55, x_22, x_64);
x_66 = l_List_drop___redArg(x_22, x_55);
lean_dec(x_55);
x_67 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_63, x_65);
x_68 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_68, 0, x_67);
lean_ctor_set(x_68, 1, x_66);
lean_ctor_set(x_68, 2, x_59);
x_69 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_69;
x_3 = x_68;
goto _start;
}
else
{
lean_object* x_71; uint32_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; 
x_71 = l_Lean_Widget_instInhabitedTaggedText_default___closed__0;
x_72 = 32;
x_73 = lean_int_sub(x_21, x_57);
lean_dec(x_57);
lean_dec(x_21);
x_74 = l_Int_toNat(x_73);
lean_dec(x_73);
x_75 = lean_string_pushn(x_71, x_72, x_74);
lean_inc_ref(x_75);
x_76 = l_Lean_Widget_TaggedText_appendText___redArg(x_75, x_54);
x_77 = lean_string_length(x_75);
lean_dec_ref(x_75);
x_78 = lean_nat_add(x_56, x_77);
lean_dec(x_77);
lean_dec(x_56);
x_79 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_55);
x_80 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_55, x_55, x_22, x_79);
x_81 = l_List_drop___redArg(x_22, x_55);
lean_dec(x_55);
x_82 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_76, x_80);
x_83 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_81);
lean_ctor_set(x_83, 2, x_78);
x_84 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_84;
x_3 = x_83;
goto _start;
}
}
}
block_107:
{
if (x_87 == 0)
{
goto block_86;
}
else
{
uint8_t x_88; 
lean_dec(x_21);
x_88 = !lean_is_exclusive(x_3);
if (x_88 == 0)
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; 
x_89 = lean_ctor_get(x_3, 0);
x_90 = lean_ctor_get(x_3, 1);
x_91 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_90);
x_92 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_90, x_90, x_22, x_91);
x_93 = l_List_drop___redArg(x_22, x_90);
lean_dec(x_90);
x_94 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_89, x_92);
lean_ctor_set(x_3, 1, x_93);
lean_ctor_set(x_3, 0, x_94);
x_95 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_95;
goto _start;
}
else
{
lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_97 = lean_ctor_get(x_3, 0);
x_98 = lean_ctor_get(x_3, 1);
x_99 = lean_ctor_get(x_3, 2);
lean_inc(x_99);
lean_inc(x_98);
lean_inc(x_97);
lean_dec(x_3);
x_100 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_22);
lean_inc(x_98);
x_101 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_98, x_98, x_22, x_100);
x_102 = l_List_drop___redArg(x_22, x_98);
lean_dec(x_98);
x_103 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_97, x_101);
x_104 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_102);
lean_ctor_set(x_104, 2, x_99);
x_105 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_105;
x_3 = x_104;
goto _start;
}
}
}
}
else
{
lean_object* x_449; lean_object* x_450; lean_object* x_451; uint8_t x_486; 
x_449 = lean_ctor_get(x_10, 0);
x_450 = lean_ctor_get(x_10, 1);
x_451 = lean_ctor_get(x_10, 2);
lean_inc(x_451);
lean_inc(x_450);
lean_inc(x_449);
lean_dec(x_10);
switch (lean_obj_tag(x_449)) {
case 0:
{
lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 
lean_dec(x_450);
lean_free_object(x_7);
lean_free_object(x_2);
x_499 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_499);
x_500 = lean_ctor_get(x_3, 1);
lean_inc(x_500);
x_501 = lean_ctor_get(x_3, 2);
lean_inc(x_501);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_502 = x_3;
} else {
 lean_dec_ref(x_3);
 x_502 = lean_box(0);
}
x_503 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_451);
lean_inc(x_500);
x_504 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_500, x_500, x_451, x_503);
x_505 = l_List_drop___redArg(x_451, x_500);
lean_dec(x_500);
x_506 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_499, x_504);
if (lean_is_scalar(x_502)) {
 x_507 = lean_alloc_ctor(0, 3, 0);
} else {
 x_507 = x_502;
}
lean_ctor_set(x_507, 0, x_506);
lean_ctor_set(x_507, 1, x_505);
lean_ctor_set(x_507, 2, x_501);
x_508 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_508;
x_3 = x_507;
goto _start;
}
case 1:
{
lean_free_object(x_7);
lean_free_object(x_2);
if (x_15 == 0)
{
uint8_t x_510; 
x_510 = l_Std_Format_FlattenAllowability_shouldFlatten(x_14);
if (x_510 == 0)
{
lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; uint32_t x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; 
x_511 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_511);
x_512 = lean_ctor_get(x_3, 1);
lean_inc(x_512);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_513 = x_3;
} else {
 lean_dec_ref(x_3);
 x_513 = lean_box(0);
}
x_514 = l_Int_toNat(x_450);
lean_dec(x_450);
x_515 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_516 = 32;
lean_inc(x_514);
x_517 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_516, x_514, x_515);
x_518 = l_Lean_Widget_TaggedText_appendText___redArg(x_517, x_511);
x_519 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_451);
lean_inc(x_512);
x_520 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_512, x_512, x_451, x_519);
x_521 = l_List_drop___redArg(x_451, x_512);
lean_dec(x_512);
x_522 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_518, x_520);
if (lean_is_scalar(x_513)) {
 x_523 = lean_alloc_ctor(0, 3, 0);
} else {
 x_523 = x_513;
}
lean_ctor_set(x_523, 0, x_522);
lean_ctor_set(x_523, 1, x_521);
lean_ctor_set(x_523, 2, x_514);
x_524 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_524;
x_3 = x_523;
goto _start;
}
else
{
lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; 
lean_dec(x_450);
x_526 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_526);
x_527 = lean_ctor_get(x_3, 1);
lean_inc(x_527);
x_528 = lean_ctor_get(x_3, 2);
lean_inc(x_528);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_529 = x_3;
} else {
 lean_dec_ref(x_3);
 x_529 = lean_box(0);
}
x_530 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0;
x_531 = l_Lean_Widget_TaggedText_appendText___redArg(x_530, x_526);
x_532 = lean_unsigned_to_nat(1u);
x_533 = lean_nat_add(x_528, x_532);
lean_dec(x_528);
x_534 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_451);
lean_inc(x_527);
x_535 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_527, x_527, x_451, x_534);
x_536 = l_List_drop___redArg(x_451, x_527);
lean_dec(x_527);
x_537 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_531, x_535);
if (lean_is_scalar(x_529)) {
 x_538 = lean_alloc_ctor(0, 3, 0);
} else {
 x_538 = x_529;
}
lean_ctor_set(x_538, 0, x_537);
lean_ctor_set(x_538, 1, x_536);
lean_ctor_set(x_538, 2, x_533);
x_539 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_539;
x_3 = x_538;
goto _start;
}
}
else
{
lean_object* x_541; uint8_t x_542; 
x_541 = l_Int_toNat(x_450);
lean_dec(x_450);
x_542 = l_Std_Format_FlattenAllowability_shouldFlatten(x_14);
lean_dec(x_14);
if (x_542 == 0)
{
lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; uint32_t x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; 
x_543 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_543);
x_544 = lean_ctor_get(x_3, 1);
lean_inc(x_544);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_545 = x_3;
} else {
 lean_dec_ref(x_3);
 x_545 = lean_box(0);
}
x_546 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_547 = 32;
lean_inc(x_541);
x_548 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_547, x_541, x_546);
x_549 = l_Lean_Widget_TaggedText_appendText___redArg(x_548, x_543);
x_550 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_451);
lean_inc(x_544);
x_551 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_544, x_544, x_451, x_550);
x_552 = l_List_drop___redArg(x_451, x_544);
lean_dec(x_544);
x_553 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_549, x_551);
if (lean_is_scalar(x_545)) {
 x_554 = lean_alloc_ctor(0, 3, 0);
} else {
 x_554 = x_545;
}
lean_ctor_set(x_554, 0, x_553);
lean_ctor_set(x_554, 1, x_552);
lean_ctor_set(x_554, 2, x_541);
x_555 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_17, x_12, x_1, x_554);
x_556 = lean_ctor_get(x_555, 0);
lean_inc(x_556);
x_557 = lean_ctor_get(x_555, 1);
lean_inc(x_557);
lean_dec_ref(x_555);
x_2 = x_556;
x_3 = x_557;
goto _start;
}
else
{
lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; 
x_559 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0;
x_560 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__1;
x_561 = lean_nat_sub(x_1, x_560);
lean_inc(x_12);
lean_inc(x_17);
x_562 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_17, x_12, x_561, x_3);
lean_dec(x_561);
x_563 = lean_ctor_get(x_562, 0);
lean_inc(x_563);
if (lean_obj_tag(x_563) == 1)
{
lean_object* x_564; lean_object* x_565; lean_object* x_566; uint8_t x_567; 
x_564 = lean_ctor_get(x_563, 0);
x_565 = lean_ctor_get(x_562, 1);
lean_inc(x_565);
lean_dec_ref(x_562);
x_566 = lean_ctor_get(x_564, 0);
x_567 = l_Std_Format_FlattenAllowability_shouldFlatten(x_566);
if (x_567 == 0)
{
lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; uint32_t x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; 
lean_dec_ref(x_563);
x_568 = lean_ctor_get(x_565, 0);
lean_inc_ref(x_568);
x_569 = lean_ctor_get(x_565, 1);
lean_inc(x_569);
if (lean_is_exclusive(x_565)) {
 lean_ctor_release(x_565, 0);
 lean_ctor_release(x_565, 1);
 lean_ctor_release(x_565, 2);
 x_570 = x_565;
} else {
 lean_dec_ref(x_565);
 x_570 = lean_box(0);
}
x_571 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_572 = 32;
lean_inc(x_541);
x_573 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_572, x_541, x_571);
x_574 = l_Lean_Widget_TaggedText_appendText___redArg(x_573, x_568);
x_575 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_451);
lean_inc(x_569);
x_576 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_569, x_569, x_451, x_575);
x_577 = l_List_drop___redArg(x_451, x_569);
lean_dec(x_569);
x_578 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_574, x_576);
if (lean_is_scalar(x_570)) {
 x_579 = lean_alloc_ctor(0, 3, 0);
} else {
 x_579 = x_570;
}
lean_ctor_set(x_579, 0, x_578);
lean_ctor_set(x_579, 1, x_577);
lean_ctor_set(x_579, 2, x_541);
x_580 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_17, x_12, x_1, x_579);
x_581 = lean_ctor_get(x_580, 0);
lean_inc(x_581);
x_582 = lean_ctor_get(x_580, 1);
lean_inc(x_582);
lean_dec_ref(x_580);
x_2 = x_581;
x_3 = x_582;
goto _start;
}
else
{
lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; 
lean_dec(x_541);
lean_dec(x_17);
lean_dec(x_12);
x_584 = lean_ctor_get(x_565, 0);
lean_inc_ref(x_584);
x_585 = lean_ctor_get(x_565, 1);
lean_inc(x_585);
x_586 = lean_ctor_get(x_565, 2);
lean_inc(x_586);
if (lean_is_exclusive(x_565)) {
 lean_ctor_release(x_565, 0);
 lean_ctor_release(x_565, 1);
 lean_ctor_release(x_565, 2);
 x_587 = x_565;
} else {
 lean_dec_ref(x_565);
 x_587 = lean_box(0);
}
x_588 = l_Lean_Widget_TaggedText_appendText___redArg(x_559, x_584);
x_589 = lean_unsigned_to_nat(1u);
x_590 = lean_nat_add(x_586, x_589);
lean_dec(x_586);
x_591 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_451);
lean_inc(x_585);
x_592 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_585, x_585, x_451, x_591);
x_593 = l_List_drop___redArg(x_451, x_585);
lean_dec(x_585);
x_594 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_588, x_592);
if (lean_is_scalar(x_587)) {
 x_595 = lean_alloc_ctor(0, 3, 0);
} else {
 x_595 = x_587;
}
lean_ctor_set(x_595, 0, x_594);
lean_ctor_set(x_595, 1, x_593);
lean_ctor_set(x_595, 2, x_590);
x_2 = x_563;
x_3 = x_595;
goto _start;
}
}
else
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; 
lean_dec(x_563);
lean_dec(x_541);
lean_dec(x_451);
lean_dec(x_17);
lean_dec(x_12);
x_597 = lean_ctor_get(x_562, 1);
lean_inc(x_597);
lean_dec_ref(x_562);
x_598 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__2;
x_599 = l_panic___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__4(x_598, x_597);
return x_599;
}
}
}
}
case 2:
{
uint8_t x_600; uint8_t x_601; 
lean_free_object(x_7);
lean_free_object(x_2);
x_600 = lean_ctor_get_uint8(x_449, 0);
lean_dec_ref(x_449);
x_601 = l_Std_Format_FlattenAllowability_shouldFlatten(x_14);
if (x_601 == 0)
{
x_486 = x_601;
goto block_498;
}
else
{
if (x_600 == 0)
{
x_486 = x_601;
goto block_498;
}
else
{
goto block_485;
}
}
}
case 3:
{
lean_object* x_602; lean_object* x_603; uint32_t x_604; lean_object* x_605; lean_object* x_606; uint8_t x_607; 
lean_free_object(x_2);
x_602 = lean_ctor_get(x_449, 0);
lean_inc_ref(x_602);
if (lean_is_exclusive(x_449)) {
 lean_ctor_release(x_449, 0);
 x_603 = x_449;
} else {
 lean_dec_ref(x_449);
 x_603 = lean_box(0);
}
x_604 = 10;
lean_inc_ref(x_602);
x_605 = lean_string_posof(x_602, x_604);
x_606 = lean_string_utf8_byte_size(x_602);
x_607 = lean_nat_dec_eq(x_605, x_606);
if (x_607 == 0)
{
lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; uint32_t x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; uint8_t x_625; 
x_608 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_608);
x_609 = lean_ctor_get(x_3, 1);
lean_inc(x_609);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_610 = x_3;
} else {
 lean_dec_ref(x_3);
 x_610 = lean_box(0);
}
x_611 = lean_unsigned_to_nat(0u);
x_612 = lean_string_utf8_extract(x_602, x_611, x_605);
x_613 = l_Lean_Widget_TaggedText_appendText___redArg(x_612, x_608);
x_614 = l_Int_toNat(x_450);
x_615 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_616 = 32;
lean_inc(x_614);
x_617 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_616, x_614, x_615);
x_618 = l_Lean_Widget_TaggedText_appendText___redArg(x_617, x_613);
if (lean_is_scalar(x_610)) {
 x_619 = lean_alloc_ctor(0, 3, 0);
} else {
 x_619 = x_610;
}
lean_ctor_set(x_619, 0, x_618);
lean_ctor_set(x_619, 1, x_609);
lean_ctor_set(x_619, 2, x_614);
x_620 = lean_string_utf8_next(x_602, x_605);
lean_dec(x_605);
x_621 = lean_string_utf8_extract(x_602, x_620, x_606);
lean_dec(x_606);
lean_dec(x_620);
lean_dec_ref(x_602);
if (lean_is_scalar(x_603)) {
 x_622 = lean_alloc_ctor(3, 1, 0);
} else {
 x_622 = x_603;
}
lean_ctor_set(x_622, 0, x_621);
x_623 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_623, 0, x_622);
lean_ctor_set(x_623, 1, x_450);
lean_ctor_set(x_623, 2, x_451);
lean_ctor_set(x_7, 0, x_623);
x_624 = lean_box(1);
x_625 = l_Std_Format_instBEqFlattenAllowability_beq(x_14, x_624);
if (x_625 == 0)
{
lean_object* x_626; lean_object* x_627; lean_object* x_628; 
lean_dec(x_14);
x_626 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_7, x_12, x_1, x_619);
x_627 = lean_ctor_get(x_626, 0);
lean_inc(x_627);
x_628 = lean_ctor_get(x_626, 1);
lean_inc(x_628);
lean_dec_ref(x_626);
x_2 = x_627;
x_3 = x_628;
goto _start;
}
else
{
lean_object* x_630; 
x_630 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_7);
x_2 = x_630;
x_3 = x_619;
goto _start;
}
}
else
{
lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; 
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_603);
lean_dec(x_450);
lean_free_object(x_7);
x_632 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_632);
x_633 = lean_ctor_get(x_3, 1);
lean_inc(x_633);
x_634 = lean_ctor_get(x_3, 2);
lean_inc(x_634);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_635 = x_3;
} else {
 lean_dec_ref(x_3);
 x_635 = lean_box(0);
}
lean_inc_ref(x_602);
x_636 = l_Lean_Widget_TaggedText_appendText___redArg(x_602, x_632);
x_637 = lean_string_length(x_602);
lean_dec_ref(x_602);
x_638 = lean_nat_add(x_634, x_637);
lean_dec(x_637);
lean_dec(x_634);
x_639 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_451);
lean_inc(x_633);
x_640 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_633, x_633, x_451, x_639);
x_641 = l_List_drop___redArg(x_451, x_633);
lean_dec(x_633);
x_642 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_636, x_640);
if (lean_is_scalar(x_635)) {
 x_643 = lean_alloc_ctor(0, 3, 0);
} else {
 x_643 = x_635;
}
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_641);
lean_ctor_set(x_643, 2, x_638);
x_644 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_644;
x_3 = x_643;
goto _start;
}
}
case 4:
{
lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; 
lean_free_object(x_2);
x_646 = lean_ctor_get(x_449, 0);
lean_inc(x_646);
x_647 = lean_ctor_get(x_449, 1);
lean_inc(x_647);
lean_dec_ref(x_449);
x_648 = lean_int_add(x_450, x_646);
lean_dec(x_646);
lean_dec(x_450);
x_649 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_649, 0, x_647);
lean_ctor_set(x_649, 1, x_648);
lean_ctor_set(x_649, 2, x_451);
lean_ctor_set(x_7, 0, x_649);
x_650 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_7);
x_2 = x_650;
goto _start;
}
case 5:
{
lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; 
x_652 = lean_ctor_get(x_449, 0);
lean_inc(x_652);
x_653 = lean_ctor_get(x_449, 1);
lean_inc(x_653);
lean_dec_ref(x_449);
x_654 = lean_unsigned_to_nat(0u);
lean_inc(x_450);
x_655 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_655, 0, x_652);
lean_ctor_set(x_655, 1, x_450);
lean_ctor_set(x_655, 2, x_654);
x_656 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_656, 0, x_653);
lean_ctor_set(x_656, 1, x_450);
lean_ctor_set(x_656, 2, x_451);
lean_ctor_set(x_7, 0, x_656);
lean_ctor_set(x_2, 1, x_7);
lean_ctor_set(x_2, 0, x_655);
x_657 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_2);
x_2 = x_657;
goto _start;
}
case 6:
{
lean_object* x_659; uint8_t x_660; uint8_t x_661; 
lean_free_object(x_2);
x_659 = lean_ctor_get(x_449, 0);
lean_inc(x_659);
x_660 = lean_ctor_get_uint8(x_449, sizeof(void*)*1);
lean_dec_ref(x_449);
x_661 = l_Std_Format_FlattenAllowability_shouldFlatten(x_14);
if (x_661 == 0)
{
lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; 
x_662 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_662, 0, x_659);
lean_ctor_set(x_662, 1, x_450);
lean_ctor_set(x_662, 2, x_451);
x_663 = lean_box(0);
lean_ctor_set(x_7, 1, x_663);
lean_ctor_set(x_7, 0, x_662);
x_664 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_665 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_660, x_7, x_664, x_1, x_3);
x_666 = lean_ctor_get(x_665, 0);
lean_inc(x_666);
x_667 = lean_ctor_get(x_665, 1);
lean_inc(x_667);
lean_dec_ref(x_665);
x_2 = x_666;
x_3 = x_667;
goto _start;
}
else
{
lean_object* x_669; lean_object* x_670; 
x_669 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_669, 0, x_659);
lean_ctor_set(x_669, 1, x_450);
lean_ctor_set(x_669, 2, x_451);
lean_ctor_set(x_7, 0, x_669);
x_670 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_7);
x_2 = x_670;
goto _start;
}
}
default: 
{
lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; 
x_672 = lean_ctor_get(x_449, 0);
lean_inc(x_672);
x_673 = lean_ctor_get(x_449, 1);
lean_inc(x_673);
lean_dec_ref(x_449);
x_674 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_674);
x_675 = lean_ctor_get(x_3, 1);
lean_inc(x_675);
x_676 = lean_ctor_get(x_3, 2);
lean_inc(x_676);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_677 = x_3;
} else {
 lean_dec_ref(x_3);
 x_677 = lean_box(0);
}
x_678 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4___closed__0;
lean_inc(x_676);
x_679 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_679, 0, x_676);
lean_ctor_set(x_679, 1, x_674);
x_680 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_680, 0, x_672);
lean_ctor_set(x_680, 1, x_679);
lean_ctor_set(x_7, 1, x_675);
lean_ctor_set(x_7, 0, x_680);
if (lean_is_scalar(x_677)) {
 x_681 = lean_alloc_ctor(0, 3, 0);
} else {
 x_681 = x_677;
}
lean_ctor_set(x_681, 0, x_678);
lean_ctor_set(x_681, 1, x_7);
lean_ctor_set(x_681, 2, x_676);
x_682 = lean_unsigned_to_nat(1u);
x_683 = lean_nat_add(x_451, x_682);
lean_dec(x_451);
x_684 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_684, 0, x_673);
lean_ctor_set(x_684, 1, x_450);
lean_ctor_set(x_684, 2, x_683);
lean_ctor_set(x_2, 1, x_17);
lean_ctor_set(x_2, 0, x_684);
x_685 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_2);
x_2 = x_685;
x_3 = x_681;
goto _start;
}
}
block_485:
{
lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; uint8_t x_457; 
x_452 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_452);
x_453 = lean_ctor_get(x_3, 1);
lean_inc(x_453);
x_454 = lean_ctor_get(x_3, 2);
lean_inc(x_454);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_455 = x_3;
} else {
 lean_dec_ref(x_3);
 x_455 = lean_box(0);
}
lean_inc(x_454);
x_456 = lean_nat_to_int(x_454);
x_457 = lean_int_dec_lt(x_456, x_450);
if (x_457 == 0)
{
lean_object* x_458; lean_object* x_459; uint32_t x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; 
lean_dec(x_456);
lean_dec(x_454);
x_458 = l_Int_toNat(x_450);
lean_dec(x_450);
x_459 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_460 = 32;
lean_inc(x_458);
x_461 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_460, x_458, x_459);
x_462 = l_Lean_Widget_TaggedText_appendText___redArg(x_461, x_452);
x_463 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_451);
lean_inc(x_453);
x_464 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_453, x_453, x_451, x_463);
x_465 = l_List_drop___redArg(x_451, x_453);
lean_dec(x_453);
x_466 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_462, x_464);
if (lean_is_scalar(x_455)) {
 x_467 = lean_alloc_ctor(0, 3, 0);
} else {
 x_467 = x_455;
}
lean_ctor_set(x_467, 0, x_466);
lean_ctor_set(x_467, 1, x_465);
lean_ctor_set(x_467, 2, x_458);
x_468 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_468;
x_3 = x_467;
goto _start;
}
else
{
lean_object* x_470; uint32_t x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; 
x_470 = l_Lean_Widget_instInhabitedTaggedText_default___closed__0;
x_471 = 32;
x_472 = lean_int_sub(x_450, x_456);
lean_dec(x_456);
lean_dec(x_450);
x_473 = l_Int_toNat(x_472);
lean_dec(x_472);
x_474 = lean_string_pushn(x_470, x_471, x_473);
lean_inc_ref(x_474);
x_475 = l_Lean_Widget_TaggedText_appendText___redArg(x_474, x_452);
x_476 = lean_string_length(x_474);
lean_dec_ref(x_474);
x_477 = lean_nat_add(x_454, x_476);
lean_dec(x_476);
lean_dec(x_454);
x_478 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_451);
lean_inc(x_453);
x_479 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_453, x_453, x_451, x_478);
x_480 = l_List_drop___redArg(x_451, x_453);
lean_dec(x_453);
x_481 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_475, x_479);
if (lean_is_scalar(x_455)) {
 x_482 = lean_alloc_ctor(0, 3, 0);
} else {
 x_482 = x_455;
}
lean_ctor_set(x_482, 0, x_481);
lean_ctor_set(x_482, 1, x_480);
lean_ctor_set(x_482, 2, x_477);
x_483 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_483;
x_3 = x_482;
goto _start;
}
}
block_498:
{
if (x_486 == 0)
{
goto block_485;
}
else
{
lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; 
lean_dec(x_450);
x_487 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_487);
x_488 = lean_ctor_get(x_3, 1);
lean_inc(x_488);
x_489 = lean_ctor_get(x_3, 2);
lean_inc(x_489);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_490 = x_3;
} else {
 lean_dec_ref(x_3);
 x_490 = lean_box(0);
}
x_491 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_451);
lean_inc(x_488);
x_492 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_488, x_488, x_451, x_491);
x_493 = l_List_drop___redArg(x_451, x_488);
lean_dec(x_488);
x_494 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_487, x_492);
if (lean_is_scalar(x_490)) {
 x_495 = lean_alloc_ctor(0, 3, 0);
} else {
 x_495 = x_490;
}
lean_ctor_set(x_495, 0, x_494);
lean_ctor_set(x_495, 1, x_493);
lean_ctor_set(x_495, 2, x_489);
x_496 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_17);
x_2 = x_496;
x_3 = x_495;
goto _start;
}
}
}
}
else
{
lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; uint8_t x_726; 
x_687 = lean_ctor_get(x_7, 1);
lean_inc(x_687);
lean_dec(x_7);
x_688 = lean_ctor_get(x_10, 0);
lean_inc(x_688);
x_689 = lean_ctor_get(x_10, 1);
lean_inc(x_689);
x_690 = lean_ctor_get(x_10, 2);
lean_inc(x_690);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 x_691 = x_10;
} else {
 lean_dec_ref(x_10);
 x_691 = lean_box(0);
}
switch (lean_obj_tag(x_688)) {
case 0:
{
lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; 
lean_dec(x_691);
lean_dec(x_689);
lean_free_object(x_2);
x_739 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_739);
x_740 = lean_ctor_get(x_3, 1);
lean_inc(x_740);
x_741 = lean_ctor_get(x_3, 2);
lean_inc(x_741);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_742 = x_3;
} else {
 lean_dec_ref(x_3);
 x_742 = lean_box(0);
}
x_743 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_690);
lean_inc(x_740);
x_744 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_740, x_740, x_690, x_743);
x_745 = l_List_drop___redArg(x_690, x_740);
lean_dec(x_740);
x_746 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_739, x_744);
if (lean_is_scalar(x_742)) {
 x_747 = lean_alloc_ctor(0, 3, 0);
} else {
 x_747 = x_742;
}
lean_ctor_set(x_747, 0, x_746);
lean_ctor_set(x_747, 1, x_745);
lean_ctor_set(x_747, 2, x_741);
x_748 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_687);
x_2 = x_748;
x_3 = x_747;
goto _start;
}
case 1:
{
lean_dec(x_691);
lean_free_object(x_2);
if (x_15 == 0)
{
uint8_t x_750; 
x_750 = l_Std_Format_FlattenAllowability_shouldFlatten(x_14);
if (x_750 == 0)
{
lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; uint32_t x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; 
x_751 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_751);
x_752 = lean_ctor_get(x_3, 1);
lean_inc(x_752);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_753 = x_3;
} else {
 lean_dec_ref(x_3);
 x_753 = lean_box(0);
}
x_754 = l_Int_toNat(x_689);
lean_dec(x_689);
x_755 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_756 = 32;
lean_inc(x_754);
x_757 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_756, x_754, x_755);
x_758 = l_Lean_Widget_TaggedText_appendText___redArg(x_757, x_751);
x_759 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_690);
lean_inc(x_752);
x_760 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_752, x_752, x_690, x_759);
x_761 = l_List_drop___redArg(x_690, x_752);
lean_dec(x_752);
x_762 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_758, x_760);
if (lean_is_scalar(x_753)) {
 x_763 = lean_alloc_ctor(0, 3, 0);
} else {
 x_763 = x_753;
}
lean_ctor_set(x_763, 0, x_762);
lean_ctor_set(x_763, 1, x_761);
lean_ctor_set(x_763, 2, x_754);
x_764 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_687);
x_2 = x_764;
x_3 = x_763;
goto _start;
}
else
{
lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; 
lean_dec(x_689);
x_766 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_766);
x_767 = lean_ctor_get(x_3, 1);
lean_inc(x_767);
x_768 = lean_ctor_get(x_3, 2);
lean_inc(x_768);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_769 = x_3;
} else {
 lean_dec_ref(x_3);
 x_769 = lean_box(0);
}
x_770 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0;
x_771 = l_Lean_Widget_TaggedText_appendText___redArg(x_770, x_766);
x_772 = lean_unsigned_to_nat(1u);
x_773 = lean_nat_add(x_768, x_772);
lean_dec(x_768);
x_774 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_690);
lean_inc(x_767);
x_775 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_767, x_767, x_690, x_774);
x_776 = l_List_drop___redArg(x_690, x_767);
lean_dec(x_767);
x_777 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_771, x_775);
if (lean_is_scalar(x_769)) {
 x_778 = lean_alloc_ctor(0, 3, 0);
} else {
 x_778 = x_769;
}
lean_ctor_set(x_778, 0, x_777);
lean_ctor_set(x_778, 1, x_776);
lean_ctor_set(x_778, 2, x_773);
x_779 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_687);
x_2 = x_779;
x_3 = x_778;
goto _start;
}
}
else
{
lean_object* x_781; uint8_t x_782; 
x_781 = l_Int_toNat(x_689);
lean_dec(x_689);
x_782 = l_Std_Format_FlattenAllowability_shouldFlatten(x_14);
lean_dec(x_14);
if (x_782 == 0)
{
lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; uint32_t x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; 
x_783 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_783);
x_784 = lean_ctor_get(x_3, 1);
lean_inc(x_784);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_785 = x_3;
} else {
 lean_dec_ref(x_3);
 x_785 = lean_box(0);
}
x_786 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_787 = 32;
lean_inc(x_781);
x_788 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_787, x_781, x_786);
x_789 = l_Lean_Widget_TaggedText_appendText___redArg(x_788, x_783);
x_790 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_690);
lean_inc(x_784);
x_791 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_784, x_784, x_690, x_790);
x_792 = l_List_drop___redArg(x_690, x_784);
lean_dec(x_784);
x_793 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_789, x_791);
if (lean_is_scalar(x_785)) {
 x_794 = lean_alloc_ctor(0, 3, 0);
} else {
 x_794 = x_785;
}
lean_ctor_set(x_794, 0, x_793);
lean_ctor_set(x_794, 1, x_792);
lean_ctor_set(x_794, 2, x_781);
x_795 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_687, x_12, x_1, x_794);
x_796 = lean_ctor_get(x_795, 0);
lean_inc(x_796);
x_797 = lean_ctor_get(x_795, 1);
lean_inc(x_797);
lean_dec_ref(x_795);
x_2 = x_796;
x_3 = x_797;
goto _start;
}
else
{
lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; 
x_799 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0;
x_800 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__1;
x_801 = lean_nat_sub(x_1, x_800);
lean_inc(x_12);
lean_inc(x_687);
x_802 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_687, x_12, x_801, x_3);
lean_dec(x_801);
x_803 = lean_ctor_get(x_802, 0);
lean_inc(x_803);
if (lean_obj_tag(x_803) == 1)
{
lean_object* x_804; lean_object* x_805; lean_object* x_806; uint8_t x_807; 
x_804 = lean_ctor_get(x_803, 0);
x_805 = lean_ctor_get(x_802, 1);
lean_inc(x_805);
lean_dec_ref(x_802);
x_806 = lean_ctor_get(x_804, 0);
x_807 = l_Std_Format_FlattenAllowability_shouldFlatten(x_806);
if (x_807 == 0)
{
lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; uint32_t x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; 
lean_dec_ref(x_803);
x_808 = lean_ctor_get(x_805, 0);
lean_inc_ref(x_808);
x_809 = lean_ctor_get(x_805, 1);
lean_inc(x_809);
if (lean_is_exclusive(x_805)) {
 lean_ctor_release(x_805, 0);
 lean_ctor_release(x_805, 1);
 lean_ctor_release(x_805, 2);
 x_810 = x_805;
} else {
 lean_dec_ref(x_805);
 x_810 = lean_box(0);
}
x_811 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_812 = 32;
lean_inc(x_781);
x_813 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_812, x_781, x_811);
x_814 = l_Lean_Widget_TaggedText_appendText___redArg(x_813, x_808);
x_815 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_690);
lean_inc(x_809);
x_816 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_809, x_809, x_690, x_815);
x_817 = l_List_drop___redArg(x_690, x_809);
lean_dec(x_809);
x_818 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_814, x_816);
if (lean_is_scalar(x_810)) {
 x_819 = lean_alloc_ctor(0, 3, 0);
} else {
 x_819 = x_810;
}
lean_ctor_set(x_819, 0, x_818);
lean_ctor_set(x_819, 1, x_817);
lean_ctor_set(x_819, 2, x_781);
x_820 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_687, x_12, x_1, x_819);
x_821 = lean_ctor_get(x_820, 0);
lean_inc(x_821);
x_822 = lean_ctor_get(x_820, 1);
lean_inc(x_822);
lean_dec_ref(x_820);
x_2 = x_821;
x_3 = x_822;
goto _start;
}
else
{
lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; 
lean_dec(x_781);
lean_dec(x_687);
lean_dec(x_12);
x_824 = lean_ctor_get(x_805, 0);
lean_inc_ref(x_824);
x_825 = lean_ctor_get(x_805, 1);
lean_inc(x_825);
x_826 = lean_ctor_get(x_805, 2);
lean_inc(x_826);
if (lean_is_exclusive(x_805)) {
 lean_ctor_release(x_805, 0);
 lean_ctor_release(x_805, 1);
 lean_ctor_release(x_805, 2);
 x_827 = x_805;
} else {
 lean_dec_ref(x_805);
 x_827 = lean_box(0);
}
x_828 = l_Lean_Widget_TaggedText_appendText___redArg(x_799, x_824);
x_829 = lean_unsigned_to_nat(1u);
x_830 = lean_nat_add(x_826, x_829);
lean_dec(x_826);
x_831 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_690);
lean_inc(x_825);
x_832 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_825, x_825, x_690, x_831);
x_833 = l_List_drop___redArg(x_690, x_825);
lean_dec(x_825);
x_834 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_828, x_832);
if (lean_is_scalar(x_827)) {
 x_835 = lean_alloc_ctor(0, 3, 0);
} else {
 x_835 = x_827;
}
lean_ctor_set(x_835, 0, x_834);
lean_ctor_set(x_835, 1, x_833);
lean_ctor_set(x_835, 2, x_830);
x_2 = x_803;
x_3 = x_835;
goto _start;
}
}
else
{
lean_object* x_837; lean_object* x_838; lean_object* x_839; 
lean_dec(x_803);
lean_dec(x_781);
lean_dec(x_690);
lean_dec(x_687);
lean_dec(x_12);
x_837 = lean_ctor_get(x_802, 1);
lean_inc(x_837);
lean_dec_ref(x_802);
x_838 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__2;
x_839 = l_panic___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__4(x_838, x_837);
return x_839;
}
}
}
}
case 2:
{
uint8_t x_840; uint8_t x_841; 
lean_dec(x_691);
lean_free_object(x_2);
x_840 = lean_ctor_get_uint8(x_688, 0);
lean_dec_ref(x_688);
x_841 = l_Std_Format_FlattenAllowability_shouldFlatten(x_14);
if (x_841 == 0)
{
x_726 = x_841;
goto block_738;
}
else
{
if (x_840 == 0)
{
x_726 = x_841;
goto block_738;
}
else
{
goto block_725;
}
}
}
case 3:
{
lean_object* x_842; lean_object* x_843; uint32_t x_844; lean_object* x_845; lean_object* x_846; uint8_t x_847; 
lean_free_object(x_2);
x_842 = lean_ctor_get(x_688, 0);
lean_inc_ref(x_842);
if (lean_is_exclusive(x_688)) {
 lean_ctor_release(x_688, 0);
 x_843 = x_688;
} else {
 lean_dec_ref(x_688);
 x_843 = lean_box(0);
}
x_844 = 10;
lean_inc_ref(x_842);
x_845 = lean_string_posof(x_842, x_844);
x_846 = lean_string_utf8_byte_size(x_842);
x_847 = lean_nat_dec_eq(x_845, x_846);
if (x_847 == 0)
{
lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; uint32_t x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; uint8_t x_866; 
x_848 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_848);
x_849 = lean_ctor_get(x_3, 1);
lean_inc(x_849);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_850 = x_3;
} else {
 lean_dec_ref(x_3);
 x_850 = lean_box(0);
}
x_851 = lean_unsigned_to_nat(0u);
x_852 = lean_string_utf8_extract(x_842, x_851, x_845);
x_853 = l_Lean_Widget_TaggedText_appendText___redArg(x_852, x_848);
x_854 = l_Int_toNat(x_689);
x_855 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_856 = 32;
lean_inc(x_854);
x_857 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_856, x_854, x_855);
x_858 = l_Lean_Widget_TaggedText_appendText___redArg(x_857, x_853);
if (lean_is_scalar(x_850)) {
 x_859 = lean_alloc_ctor(0, 3, 0);
} else {
 x_859 = x_850;
}
lean_ctor_set(x_859, 0, x_858);
lean_ctor_set(x_859, 1, x_849);
lean_ctor_set(x_859, 2, x_854);
x_860 = lean_string_utf8_next(x_842, x_845);
lean_dec(x_845);
x_861 = lean_string_utf8_extract(x_842, x_860, x_846);
lean_dec(x_846);
lean_dec(x_860);
lean_dec_ref(x_842);
if (lean_is_scalar(x_843)) {
 x_862 = lean_alloc_ctor(3, 1, 0);
} else {
 x_862 = x_843;
}
lean_ctor_set(x_862, 0, x_861);
if (lean_is_scalar(x_691)) {
 x_863 = lean_alloc_ctor(0, 3, 0);
} else {
 x_863 = x_691;
}
lean_ctor_set(x_863, 0, x_862);
lean_ctor_set(x_863, 1, x_689);
lean_ctor_set(x_863, 2, x_690);
x_864 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_864, 0, x_863);
lean_ctor_set(x_864, 1, x_687);
x_865 = lean_box(1);
x_866 = l_Std_Format_instBEqFlattenAllowability_beq(x_14, x_865);
if (x_866 == 0)
{
lean_object* x_867; lean_object* x_868; lean_object* x_869; 
lean_dec(x_14);
x_867 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_15, x_864, x_12, x_1, x_859);
x_868 = lean_ctor_get(x_867, 0);
lean_inc(x_868);
x_869 = lean_ctor_get(x_867, 1);
lean_inc(x_869);
lean_dec_ref(x_867);
x_2 = x_868;
x_3 = x_869;
goto _start;
}
else
{
lean_object* x_871; 
x_871 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_864);
x_2 = x_871;
x_3 = x_859;
goto _start;
}
}
else
{
lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; 
lean_dec(x_846);
lean_dec(x_845);
lean_dec(x_843);
lean_dec(x_691);
lean_dec(x_689);
x_873 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_873);
x_874 = lean_ctor_get(x_3, 1);
lean_inc(x_874);
x_875 = lean_ctor_get(x_3, 2);
lean_inc(x_875);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_876 = x_3;
} else {
 lean_dec_ref(x_3);
 x_876 = lean_box(0);
}
lean_inc_ref(x_842);
x_877 = l_Lean_Widget_TaggedText_appendText___redArg(x_842, x_873);
x_878 = lean_string_length(x_842);
lean_dec_ref(x_842);
x_879 = lean_nat_add(x_875, x_878);
lean_dec(x_878);
lean_dec(x_875);
x_880 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_690);
lean_inc(x_874);
x_881 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_874, x_874, x_690, x_880);
x_882 = l_List_drop___redArg(x_690, x_874);
lean_dec(x_874);
x_883 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_877, x_881);
if (lean_is_scalar(x_876)) {
 x_884 = lean_alloc_ctor(0, 3, 0);
} else {
 x_884 = x_876;
}
lean_ctor_set(x_884, 0, x_883);
lean_ctor_set(x_884, 1, x_882);
lean_ctor_set(x_884, 2, x_879);
x_885 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_687);
x_2 = x_885;
x_3 = x_884;
goto _start;
}
}
case 4:
{
lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; 
lean_free_object(x_2);
x_887 = lean_ctor_get(x_688, 0);
lean_inc(x_887);
x_888 = lean_ctor_get(x_688, 1);
lean_inc(x_888);
lean_dec_ref(x_688);
x_889 = lean_int_add(x_689, x_887);
lean_dec(x_887);
lean_dec(x_689);
if (lean_is_scalar(x_691)) {
 x_890 = lean_alloc_ctor(0, 3, 0);
} else {
 x_890 = x_691;
}
lean_ctor_set(x_890, 0, x_888);
lean_ctor_set(x_890, 1, x_889);
lean_ctor_set(x_890, 2, x_690);
x_891 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_891, 0, x_890);
lean_ctor_set(x_891, 1, x_687);
x_892 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_891);
x_2 = x_892;
goto _start;
}
case 5:
{
lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; 
x_894 = lean_ctor_get(x_688, 0);
lean_inc(x_894);
x_895 = lean_ctor_get(x_688, 1);
lean_inc(x_895);
lean_dec_ref(x_688);
x_896 = lean_unsigned_to_nat(0u);
lean_inc(x_689);
if (lean_is_scalar(x_691)) {
 x_897 = lean_alloc_ctor(0, 3, 0);
} else {
 x_897 = x_691;
}
lean_ctor_set(x_897, 0, x_894);
lean_ctor_set(x_897, 1, x_689);
lean_ctor_set(x_897, 2, x_896);
x_898 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_898, 0, x_895);
lean_ctor_set(x_898, 1, x_689);
lean_ctor_set(x_898, 2, x_690);
x_899 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_899, 0, x_898);
lean_ctor_set(x_899, 1, x_687);
lean_ctor_set(x_2, 1, x_899);
lean_ctor_set(x_2, 0, x_897);
x_900 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_2);
x_2 = x_900;
goto _start;
}
case 6:
{
lean_object* x_902; uint8_t x_903; uint8_t x_904; 
lean_free_object(x_2);
x_902 = lean_ctor_get(x_688, 0);
lean_inc(x_902);
x_903 = lean_ctor_get_uint8(x_688, sizeof(void*)*1);
lean_dec_ref(x_688);
x_904 = l_Std_Format_FlattenAllowability_shouldFlatten(x_14);
if (x_904 == 0)
{
lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; 
if (lean_is_scalar(x_691)) {
 x_905 = lean_alloc_ctor(0, 3, 0);
} else {
 x_905 = x_691;
}
lean_ctor_set(x_905, 0, x_902);
lean_ctor_set(x_905, 1, x_689);
lean_ctor_set(x_905, 2, x_690);
x_906 = lean_box(0);
x_907 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_907, 0, x_905);
lean_ctor_set(x_907, 1, x_906);
x_908 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_687);
x_909 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_903, x_907, x_908, x_1, x_3);
x_910 = lean_ctor_get(x_909, 0);
lean_inc(x_910);
x_911 = lean_ctor_get(x_909, 1);
lean_inc(x_911);
lean_dec_ref(x_909);
x_2 = x_910;
x_3 = x_911;
goto _start;
}
else
{
lean_object* x_913; lean_object* x_914; lean_object* x_915; 
if (lean_is_scalar(x_691)) {
 x_913 = lean_alloc_ctor(0, 3, 0);
} else {
 x_913 = x_691;
}
lean_ctor_set(x_913, 0, x_902);
lean_ctor_set(x_913, 1, x_689);
lean_ctor_set(x_913, 2, x_690);
x_914 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_914, 0, x_913);
lean_ctor_set(x_914, 1, x_687);
x_915 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_914);
x_2 = x_915;
goto _start;
}
}
default: 
{
lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; 
x_917 = lean_ctor_get(x_688, 0);
lean_inc(x_917);
x_918 = lean_ctor_get(x_688, 1);
lean_inc(x_918);
lean_dec_ref(x_688);
x_919 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_919);
x_920 = lean_ctor_get(x_3, 1);
lean_inc(x_920);
x_921 = lean_ctor_get(x_3, 2);
lean_inc(x_921);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_922 = x_3;
} else {
 lean_dec_ref(x_3);
 x_922 = lean_box(0);
}
x_923 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4___closed__0;
lean_inc(x_921);
x_924 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_924, 0, x_921);
lean_ctor_set(x_924, 1, x_919);
x_925 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_925, 0, x_917);
lean_ctor_set(x_925, 1, x_924);
x_926 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_926, 0, x_925);
lean_ctor_set(x_926, 1, x_920);
if (lean_is_scalar(x_922)) {
 x_927 = lean_alloc_ctor(0, 3, 0);
} else {
 x_927 = x_922;
}
lean_ctor_set(x_927, 0, x_923);
lean_ctor_set(x_927, 1, x_926);
lean_ctor_set(x_927, 2, x_921);
x_928 = lean_unsigned_to_nat(1u);
x_929 = lean_nat_add(x_690, x_928);
lean_dec(x_690);
if (lean_is_scalar(x_691)) {
 x_930 = lean_alloc_ctor(0, 3, 0);
} else {
 x_930 = x_691;
}
lean_ctor_set(x_930, 0, x_918);
lean_ctor_set(x_930, 1, x_689);
lean_ctor_set(x_930, 2, x_929);
lean_ctor_set(x_2, 1, x_687);
lean_ctor_set(x_2, 0, x_930);
x_931 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_2);
x_2 = x_931;
x_3 = x_927;
goto _start;
}
}
block_725:
{
lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; uint8_t x_697; 
x_692 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_692);
x_693 = lean_ctor_get(x_3, 1);
lean_inc(x_693);
x_694 = lean_ctor_get(x_3, 2);
lean_inc(x_694);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_695 = x_3;
} else {
 lean_dec_ref(x_3);
 x_695 = lean_box(0);
}
lean_inc(x_694);
x_696 = lean_nat_to_int(x_694);
x_697 = lean_int_dec_lt(x_696, x_689);
if (x_697 == 0)
{
lean_object* x_698; lean_object* x_699; uint32_t x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; 
lean_dec(x_696);
lean_dec(x_694);
x_698 = l_Int_toNat(x_689);
lean_dec(x_689);
x_699 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_700 = 32;
lean_inc(x_698);
x_701 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_700, x_698, x_699);
x_702 = l_Lean_Widget_TaggedText_appendText___redArg(x_701, x_692);
x_703 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_690);
lean_inc(x_693);
x_704 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_693, x_693, x_690, x_703);
x_705 = l_List_drop___redArg(x_690, x_693);
lean_dec(x_693);
x_706 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_702, x_704);
if (lean_is_scalar(x_695)) {
 x_707 = lean_alloc_ctor(0, 3, 0);
} else {
 x_707 = x_695;
}
lean_ctor_set(x_707, 0, x_706);
lean_ctor_set(x_707, 1, x_705);
lean_ctor_set(x_707, 2, x_698);
x_708 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_687);
x_2 = x_708;
x_3 = x_707;
goto _start;
}
else
{
lean_object* x_710; uint32_t x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; 
x_710 = l_Lean_Widget_instInhabitedTaggedText_default___closed__0;
x_711 = 32;
x_712 = lean_int_sub(x_689, x_696);
lean_dec(x_696);
lean_dec(x_689);
x_713 = l_Int_toNat(x_712);
lean_dec(x_712);
x_714 = lean_string_pushn(x_710, x_711, x_713);
lean_inc_ref(x_714);
x_715 = l_Lean_Widget_TaggedText_appendText___redArg(x_714, x_692);
x_716 = lean_string_length(x_714);
lean_dec_ref(x_714);
x_717 = lean_nat_add(x_694, x_716);
lean_dec(x_716);
lean_dec(x_694);
x_718 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_690);
lean_inc(x_693);
x_719 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_693, x_693, x_690, x_718);
x_720 = l_List_drop___redArg(x_690, x_693);
lean_dec(x_693);
x_721 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_715, x_719);
if (lean_is_scalar(x_695)) {
 x_722 = lean_alloc_ctor(0, 3, 0);
} else {
 x_722 = x_695;
}
lean_ctor_set(x_722, 0, x_721);
lean_ctor_set(x_722, 1, x_720);
lean_ctor_set(x_722, 2, x_717);
x_723 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_687);
x_2 = x_723;
x_3 = x_722;
goto _start;
}
}
block_738:
{
if (x_726 == 0)
{
goto block_725;
}
else
{
lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; 
lean_dec(x_689);
x_727 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_727);
x_728 = lean_ctor_get(x_3, 1);
lean_inc(x_728);
x_729 = lean_ctor_get(x_3, 2);
lean_inc(x_729);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_730 = x_3;
} else {
 lean_dec_ref(x_3);
 x_730 = lean_box(0);
}
x_731 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_690);
lean_inc(x_728);
x_732 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_728, x_728, x_690, x_731);
x_733 = l_List_drop___redArg(x_690, x_728);
lean_dec(x_728);
x_734 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_727, x_732);
if (lean_is_scalar(x_730)) {
 x_735 = lean_alloc_ctor(0, 3, 0);
} else {
 x_735 = x_730;
}
lean_ctor_set(x_735, 0, x_734);
lean_ctor_set(x_735, 1, x_733);
lean_ctor_set(x_735, 2, x_729);
x_736 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_14, x_15, x_12, x_687);
x_2 = x_736;
x_3 = x_735;
goto _start;
}
}
}
}
else
{
lean_object* x_933; lean_object* x_934; uint8_t x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; uint8_t x_976; 
x_933 = lean_ctor_get(x_2, 1);
lean_inc(x_933);
lean_dec(x_2);
x_934 = lean_ctor_get(x_6, 0);
lean_inc(x_934);
x_935 = lean_ctor_get_uint8(x_6, sizeof(void*)*2);
lean_dec(x_6);
x_936 = lean_ctor_get(x_7, 1);
lean_inc(x_936);
if (lean_is_exclusive(x_7)) {
 lean_ctor_release(x_7, 0);
 lean_ctor_release(x_7, 1);
 x_937 = x_7;
} else {
 lean_dec_ref(x_7);
 x_937 = lean_box(0);
}
x_938 = lean_ctor_get(x_10, 0);
lean_inc(x_938);
x_939 = lean_ctor_get(x_10, 1);
lean_inc(x_939);
x_940 = lean_ctor_get(x_10, 2);
lean_inc(x_940);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 x_941 = x_10;
} else {
 lean_dec_ref(x_10);
 x_941 = lean_box(0);
}
switch (lean_obj_tag(x_938)) {
case 0:
{
lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; 
lean_dec(x_941);
lean_dec(x_939);
lean_dec(x_937);
x_989 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_989);
x_990 = lean_ctor_get(x_3, 1);
lean_inc(x_990);
x_991 = lean_ctor_get(x_3, 2);
lean_inc(x_991);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_992 = x_3;
} else {
 lean_dec_ref(x_3);
 x_992 = lean_box(0);
}
x_993 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_940);
lean_inc(x_990);
x_994 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_990, x_990, x_940, x_993);
x_995 = l_List_drop___redArg(x_940, x_990);
lean_dec(x_990);
x_996 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_989, x_994);
if (lean_is_scalar(x_992)) {
 x_997 = lean_alloc_ctor(0, 3, 0);
} else {
 x_997 = x_992;
}
lean_ctor_set(x_997, 0, x_996);
lean_ctor_set(x_997, 1, x_995);
lean_ctor_set(x_997, 2, x_991);
x_998 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_934, x_935, x_933, x_936);
x_2 = x_998;
x_3 = x_997;
goto _start;
}
case 1:
{
lean_dec(x_941);
lean_dec(x_937);
if (x_935 == 0)
{
uint8_t x_1000; 
x_1000 = l_Std_Format_FlattenAllowability_shouldFlatten(x_934);
if (x_1000 == 0)
{
lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; uint32_t x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; 
x_1001 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_1001);
x_1002 = lean_ctor_get(x_3, 1);
lean_inc(x_1002);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_1003 = x_3;
} else {
 lean_dec_ref(x_3);
 x_1003 = lean_box(0);
}
x_1004 = l_Int_toNat(x_939);
lean_dec(x_939);
x_1005 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_1006 = 32;
lean_inc(x_1004);
x_1007 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_1006, x_1004, x_1005);
x_1008 = l_Lean_Widget_TaggedText_appendText___redArg(x_1007, x_1001);
x_1009 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_940);
lean_inc(x_1002);
x_1010 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_1002, x_1002, x_940, x_1009);
x_1011 = l_List_drop___redArg(x_940, x_1002);
lean_dec(x_1002);
x_1012 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_1008, x_1010);
if (lean_is_scalar(x_1003)) {
 x_1013 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1013 = x_1003;
}
lean_ctor_set(x_1013, 0, x_1012);
lean_ctor_set(x_1013, 1, x_1011);
lean_ctor_set(x_1013, 2, x_1004);
x_1014 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_934, x_935, x_933, x_936);
x_2 = x_1014;
x_3 = x_1013;
goto _start;
}
else
{
lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; 
lean_dec(x_939);
x_1016 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_1016);
x_1017 = lean_ctor_get(x_3, 1);
lean_inc(x_1017);
x_1018 = lean_ctor_get(x_3, 2);
lean_inc(x_1018);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_1019 = x_3;
} else {
 lean_dec_ref(x_3);
 x_1019 = lean_box(0);
}
x_1020 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0;
x_1021 = l_Lean_Widget_TaggedText_appendText___redArg(x_1020, x_1016);
x_1022 = lean_unsigned_to_nat(1u);
x_1023 = lean_nat_add(x_1018, x_1022);
lean_dec(x_1018);
x_1024 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_940);
lean_inc(x_1017);
x_1025 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_1017, x_1017, x_940, x_1024);
x_1026 = l_List_drop___redArg(x_940, x_1017);
lean_dec(x_1017);
x_1027 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_1021, x_1025);
if (lean_is_scalar(x_1019)) {
 x_1028 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1028 = x_1019;
}
lean_ctor_set(x_1028, 0, x_1027);
lean_ctor_set(x_1028, 1, x_1026);
lean_ctor_set(x_1028, 2, x_1023);
x_1029 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_934, x_935, x_933, x_936);
x_2 = x_1029;
x_3 = x_1028;
goto _start;
}
}
else
{
lean_object* x_1031; uint8_t x_1032; 
x_1031 = l_Int_toNat(x_939);
lean_dec(x_939);
x_1032 = l_Std_Format_FlattenAllowability_shouldFlatten(x_934);
lean_dec(x_934);
if (x_1032 == 0)
{
lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; uint32_t x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; 
x_1033 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_1033);
x_1034 = lean_ctor_get(x_3, 1);
lean_inc(x_1034);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_1035 = x_3;
} else {
 lean_dec_ref(x_3);
 x_1035 = lean_box(0);
}
x_1036 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_1037 = 32;
lean_inc(x_1031);
x_1038 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_1037, x_1031, x_1036);
x_1039 = l_Lean_Widget_TaggedText_appendText___redArg(x_1038, x_1033);
x_1040 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_940);
lean_inc(x_1034);
x_1041 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_1034, x_1034, x_940, x_1040);
x_1042 = l_List_drop___redArg(x_940, x_1034);
lean_dec(x_1034);
x_1043 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_1039, x_1041);
if (lean_is_scalar(x_1035)) {
 x_1044 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1044 = x_1035;
}
lean_ctor_set(x_1044, 0, x_1043);
lean_ctor_set(x_1044, 1, x_1042);
lean_ctor_set(x_1044, 2, x_1031);
x_1045 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_935, x_936, x_933, x_1, x_1044);
x_1046 = lean_ctor_get(x_1045, 0);
lean_inc(x_1046);
x_1047 = lean_ctor_get(x_1045, 1);
lean_inc(x_1047);
lean_dec_ref(x_1045);
x_2 = x_1046;
x_3 = x_1047;
goto _start;
}
else
{
lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; 
x_1049 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0;
x_1050 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__1;
x_1051 = lean_nat_sub(x_1, x_1050);
lean_inc(x_933);
lean_inc(x_936);
x_1052 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_935, x_936, x_933, x_1051, x_3);
lean_dec(x_1051);
x_1053 = lean_ctor_get(x_1052, 0);
lean_inc(x_1053);
if (lean_obj_tag(x_1053) == 1)
{
lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; uint8_t x_1057; 
x_1054 = lean_ctor_get(x_1053, 0);
x_1055 = lean_ctor_get(x_1052, 1);
lean_inc(x_1055);
lean_dec_ref(x_1052);
x_1056 = lean_ctor_get(x_1054, 0);
x_1057 = l_Std_Format_FlattenAllowability_shouldFlatten(x_1056);
if (x_1057 == 0)
{
lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; uint32_t x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; 
lean_dec_ref(x_1053);
x_1058 = lean_ctor_get(x_1055, 0);
lean_inc_ref(x_1058);
x_1059 = lean_ctor_get(x_1055, 1);
lean_inc(x_1059);
if (lean_is_exclusive(x_1055)) {
 lean_ctor_release(x_1055, 0);
 lean_ctor_release(x_1055, 1);
 lean_ctor_release(x_1055, 2);
 x_1060 = x_1055;
} else {
 lean_dec_ref(x_1055);
 x_1060 = lean_box(0);
}
x_1061 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_1062 = 32;
lean_inc(x_1031);
x_1063 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_1062, x_1031, x_1061);
x_1064 = l_Lean_Widget_TaggedText_appendText___redArg(x_1063, x_1058);
x_1065 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_940);
lean_inc(x_1059);
x_1066 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_1059, x_1059, x_940, x_1065);
x_1067 = l_List_drop___redArg(x_940, x_1059);
lean_dec(x_1059);
x_1068 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_1064, x_1066);
if (lean_is_scalar(x_1060)) {
 x_1069 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1069 = x_1060;
}
lean_ctor_set(x_1069, 0, x_1068);
lean_ctor_set(x_1069, 1, x_1067);
lean_ctor_set(x_1069, 2, x_1031);
x_1070 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_935, x_936, x_933, x_1, x_1069);
x_1071 = lean_ctor_get(x_1070, 0);
lean_inc(x_1071);
x_1072 = lean_ctor_get(x_1070, 1);
lean_inc(x_1072);
lean_dec_ref(x_1070);
x_2 = x_1071;
x_3 = x_1072;
goto _start;
}
else
{
lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; 
lean_dec(x_1031);
lean_dec(x_936);
lean_dec(x_933);
x_1074 = lean_ctor_get(x_1055, 0);
lean_inc_ref(x_1074);
x_1075 = lean_ctor_get(x_1055, 1);
lean_inc(x_1075);
x_1076 = lean_ctor_get(x_1055, 2);
lean_inc(x_1076);
if (lean_is_exclusive(x_1055)) {
 lean_ctor_release(x_1055, 0);
 lean_ctor_release(x_1055, 1);
 lean_ctor_release(x_1055, 2);
 x_1077 = x_1055;
} else {
 lean_dec_ref(x_1055);
 x_1077 = lean_box(0);
}
x_1078 = l_Lean_Widget_TaggedText_appendText___redArg(x_1049, x_1074);
x_1079 = lean_unsigned_to_nat(1u);
x_1080 = lean_nat_add(x_1076, x_1079);
lean_dec(x_1076);
x_1081 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_940);
lean_inc(x_1075);
x_1082 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_1075, x_1075, x_940, x_1081);
x_1083 = l_List_drop___redArg(x_940, x_1075);
lean_dec(x_1075);
x_1084 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_1078, x_1082);
if (lean_is_scalar(x_1077)) {
 x_1085 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1085 = x_1077;
}
lean_ctor_set(x_1085, 0, x_1084);
lean_ctor_set(x_1085, 1, x_1083);
lean_ctor_set(x_1085, 2, x_1080);
x_2 = x_1053;
x_3 = x_1085;
goto _start;
}
}
else
{
lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; 
lean_dec(x_1053);
lean_dec(x_1031);
lean_dec(x_940);
lean_dec(x_936);
lean_dec(x_933);
x_1087 = lean_ctor_get(x_1052, 1);
lean_inc(x_1087);
lean_dec_ref(x_1052);
x_1088 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__2;
x_1089 = l_panic___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__4(x_1088, x_1087);
return x_1089;
}
}
}
}
case 2:
{
uint8_t x_1090; uint8_t x_1091; 
lean_dec(x_941);
lean_dec(x_937);
x_1090 = lean_ctor_get_uint8(x_938, 0);
lean_dec_ref(x_938);
x_1091 = l_Std_Format_FlattenAllowability_shouldFlatten(x_934);
if (x_1091 == 0)
{
x_976 = x_1091;
goto block_988;
}
else
{
if (x_1090 == 0)
{
x_976 = x_1091;
goto block_988;
}
else
{
goto block_975;
}
}
}
case 3:
{
lean_object* x_1092; lean_object* x_1093; uint32_t x_1094; lean_object* x_1095; lean_object* x_1096; uint8_t x_1097; 
x_1092 = lean_ctor_get(x_938, 0);
lean_inc_ref(x_1092);
if (lean_is_exclusive(x_938)) {
 lean_ctor_release(x_938, 0);
 x_1093 = x_938;
} else {
 lean_dec_ref(x_938);
 x_1093 = lean_box(0);
}
x_1094 = 10;
lean_inc_ref(x_1092);
x_1095 = lean_string_posof(x_1092, x_1094);
x_1096 = lean_string_utf8_byte_size(x_1092);
x_1097 = lean_nat_dec_eq(x_1095, x_1096);
if (x_1097 == 0)
{
lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; uint32_t x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; uint8_t x_1116; 
x_1098 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_1098);
x_1099 = lean_ctor_get(x_3, 1);
lean_inc(x_1099);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_1100 = x_3;
} else {
 lean_dec_ref(x_3);
 x_1100 = lean_box(0);
}
x_1101 = lean_unsigned_to_nat(0u);
x_1102 = lean_string_utf8_extract(x_1092, x_1101, x_1095);
x_1103 = l_Lean_Widget_TaggedText_appendText___redArg(x_1102, x_1098);
x_1104 = l_Int_toNat(x_939);
x_1105 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_1106 = 32;
lean_inc(x_1104);
x_1107 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_1106, x_1104, x_1105);
x_1108 = l_Lean_Widget_TaggedText_appendText___redArg(x_1107, x_1103);
if (lean_is_scalar(x_1100)) {
 x_1109 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1109 = x_1100;
}
lean_ctor_set(x_1109, 0, x_1108);
lean_ctor_set(x_1109, 1, x_1099);
lean_ctor_set(x_1109, 2, x_1104);
x_1110 = lean_string_utf8_next(x_1092, x_1095);
lean_dec(x_1095);
x_1111 = lean_string_utf8_extract(x_1092, x_1110, x_1096);
lean_dec(x_1096);
lean_dec(x_1110);
lean_dec_ref(x_1092);
if (lean_is_scalar(x_1093)) {
 x_1112 = lean_alloc_ctor(3, 1, 0);
} else {
 x_1112 = x_1093;
}
lean_ctor_set(x_1112, 0, x_1111);
if (lean_is_scalar(x_941)) {
 x_1113 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1113 = x_941;
}
lean_ctor_set(x_1113, 0, x_1112);
lean_ctor_set(x_1113, 1, x_939);
lean_ctor_set(x_1113, 2, x_940);
if (lean_is_scalar(x_937)) {
 x_1114 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1114 = x_937;
}
lean_ctor_set(x_1114, 0, x_1113);
lean_ctor_set(x_1114, 1, x_936);
x_1115 = lean_box(1);
x_1116 = l_Std_Format_instBEqFlattenAllowability_beq(x_934, x_1115);
if (x_1116 == 0)
{
lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; 
lean_dec(x_934);
x_1117 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_935, x_1114, x_933, x_1, x_1109);
x_1118 = lean_ctor_get(x_1117, 0);
lean_inc(x_1118);
x_1119 = lean_ctor_get(x_1117, 1);
lean_inc(x_1119);
lean_dec_ref(x_1117);
x_2 = x_1118;
x_3 = x_1119;
goto _start;
}
else
{
lean_object* x_1121; 
x_1121 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_934, x_935, x_933, x_1114);
x_2 = x_1121;
x_3 = x_1109;
goto _start;
}
}
else
{
lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; 
lean_dec(x_1096);
lean_dec(x_1095);
lean_dec(x_1093);
lean_dec(x_941);
lean_dec(x_939);
lean_dec(x_937);
x_1123 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_1123);
x_1124 = lean_ctor_get(x_3, 1);
lean_inc(x_1124);
x_1125 = lean_ctor_get(x_3, 2);
lean_inc(x_1125);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_1126 = x_3;
} else {
 lean_dec_ref(x_3);
 x_1126 = lean_box(0);
}
lean_inc_ref(x_1092);
x_1127 = l_Lean_Widget_TaggedText_appendText___redArg(x_1092, x_1123);
x_1128 = lean_string_length(x_1092);
lean_dec_ref(x_1092);
x_1129 = lean_nat_add(x_1125, x_1128);
lean_dec(x_1128);
lean_dec(x_1125);
x_1130 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_940);
lean_inc(x_1124);
x_1131 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_1124, x_1124, x_940, x_1130);
x_1132 = l_List_drop___redArg(x_940, x_1124);
lean_dec(x_1124);
x_1133 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_1127, x_1131);
if (lean_is_scalar(x_1126)) {
 x_1134 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1134 = x_1126;
}
lean_ctor_set(x_1134, 0, x_1133);
lean_ctor_set(x_1134, 1, x_1132);
lean_ctor_set(x_1134, 2, x_1129);
x_1135 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_934, x_935, x_933, x_936);
x_2 = x_1135;
x_3 = x_1134;
goto _start;
}
}
case 4:
{
lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; 
x_1137 = lean_ctor_get(x_938, 0);
lean_inc(x_1137);
x_1138 = lean_ctor_get(x_938, 1);
lean_inc(x_1138);
lean_dec_ref(x_938);
x_1139 = lean_int_add(x_939, x_1137);
lean_dec(x_1137);
lean_dec(x_939);
if (lean_is_scalar(x_941)) {
 x_1140 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1140 = x_941;
}
lean_ctor_set(x_1140, 0, x_1138);
lean_ctor_set(x_1140, 1, x_1139);
lean_ctor_set(x_1140, 2, x_940);
if (lean_is_scalar(x_937)) {
 x_1141 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1141 = x_937;
}
lean_ctor_set(x_1141, 0, x_1140);
lean_ctor_set(x_1141, 1, x_936);
x_1142 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_934, x_935, x_933, x_1141);
x_2 = x_1142;
goto _start;
}
case 5:
{
lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; 
x_1144 = lean_ctor_get(x_938, 0);
lean_inc(x_1144);
x_1145 = lean_ctor_get(x_938, 1);
lean_inc(x_1145);
lean_dec_ref(x_938);
x_1146 = lean_unsigned_to_nat(0u);
lean_inc(x_939);
if (lean_is_scalar(x_941)) {
 x_1147 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1147 = x_941;
}
lean_ctor_set(x_1147, 0, x_1144);
lean_ctor_set(x_1147, 1, x_939);
lean_ctor_set(x_1147, 2, x_1146);
x_1148 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_1148, 0, x_1145);
lean_ctor_set(x_1148, 1, x_939);
lean_ctor_set(x_1148, 2, x_940);
if (lean_is_scalar(x_937)) {
 x_1149 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1149 = x_937;
}
lean_ctor_set(x_1149, 0, x_1148);
lean_ctor_set(x_1149, 1, x_936);
x_1150 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1150, 0, x_1147);
lean_ctor_set(x_1150, 1, x_1149);
x_1151 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_934, x_935, x_933, x_1150);
x_2 = x_1151;
goto _start;
}
case 6:
{
lean_object* x_1153; uint8_t x_1154; uint8_t x_1155; 
x_1153 = lean_ctor_get(x_938, 0);
lean_inc(x_1153);
x_1154 = lean_ctor_get_uint8(x_938, sizeof(void*)*1);
lean_dec_ref(x_938);
x_1155 = l_Std_Format_FlattenAllowability_shouldFlatten(x_934);
if (x_1155 == 0)
{
lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; 
if (lean_is_scalar(x_941)) {
 x_1156 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1156 = x_941;
}
lean_ctor_set(x_1156, 0, x_1153);
lean_ctor_set(x_1156, 1, x_939);
lean_ctor_set(x_1156, 2, x_940);
x_1157 = lean_box(0);
if (lean_is_scalar(x_937)) {
 x_1158 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1158 = x_937;
}
lean_ctor_set(x_1158, 0, x_1156);
lean_ctor_set(x_1158, 1, x_1157);
x_1159 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_934, x_935, x_933, x_936);
x_1160 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_1154, x_1158, x_1159, x_1, x_3);
x_1161 = lean_ctor_get(x_1160, 0);
lean_inc(x_1161);
x_1162 = lean_ctor_get(x_1160, 1);
lean_inc(x_1162);
lean_dec_ref(x_1160);
x_2 = x_1161;
x_3 = x_1162;
goto _start;
}
else
{
lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; 
if (lean_is_scalar(x_941)) {
 x_1164 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1164 = x_941;
}
lean_ctor_set(x_1164, 0, x_1153);
lean_ctor_set(x_1164, 1, x_939);
lean_ctor_set(x_1164, 2, x_940);
if (lean_is_scalar(x_937)) {
 x_1165 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1165 = x_937;
}
lean_ctor_set(x_1165, 0, x_1164);
lean_ctor_set(x_1165, 1, x_936);
x_1166 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_934, x_935, x_933, x_1165);
x_2 = x_1166;
goto _start;
}
}
default: 
{
lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; 
x_1168 = lean_ctor_get(x_938, 0);
lean_inc(x_1168);
x_1169 = lean_ctor_get(x_938, 1);
lean_inc(x_1169);
lean_dec_ref(x_938);
x_1170 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_1170);
x_1171 = lean_ctor_get(x_3, 1);
lean_inc(x_1171);
x_1172 = lean_ctor_get(x_3, 2);
lean_inc(x_1172);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_1173 = x_3;
} else {
 lean_dec_ref(x_3);
 x_1173 = lean_box(0);
}
x_1174 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4___closed__0;
lean_inc(x_1172);
x_1175 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1175, 0, x_1172);
lean_ctor_set(x_1175, 1, x_1170);
x_1176 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1176, 0, x_1168);
lean_ctor_set(x_1176, 1, x_1175);
if (lean_is_scalar(x_937)) {
 x_1177 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1177 = x_937;
}
lean_ctor_set(x_1177, 0, x_1176);
lean_ctor_set(x_1177, 1, x_1171);
if (lean_is_scalar(x_1173)) {
 x_1178 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1178 = x_1173;
}
lean_ctor_set(x_1178, 0, x_1174);
lean_ctor_set(x_1178, 1, x_1177);
lean_ctor_set(x_1178, 2, x_1172);
x_1179 = lean_unsigned_to_nat(1u);
x_1180 = lean_nat_add(x_940, x_1179);
lean_dec(x_940);
if (lean_is_scalar(x_941)) {
 x_1181 = lean_alloc_ctor(0, 3, 0);
} else {
 x_1181 = x_941;
}
lean_ctor_set(x_1181, 0, x_1169);
lean_ctor_set(x_1181, 1, x_939);
lean_ctor_set(x_1181, 2, x_1180);
x_1182 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1182, 0, x_1181);
lean_ctor_set(x_1182, 1, x_936);
x_1183 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_934, x_935, x_933, x_1182);
x_2 = x_1183;
x_3 = x_1178;
goto _start;
}
}
block_975:
{
lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; uint8_t x_947; 
x_942 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_942);
x_943 = lean_ctor_get(x_3, 1);
lean_inc(x_943);
x_944 = lean_ctor_get(x_3, 2);
lean_inc(x_944);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_945 = x_3;
} else {
 lean_dec_ref(x_3);
 x_945 = lean_box(0);
}
lean_inc(x_944);
x_946 = lean_nat_to_int(x_944);
x_947 = lean_int_dec_lt(x_946, x_939);
if (x_947 == 0)
{
lean_object* x_948; lean_object* x_949; uint32_t x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; 
lean_dec(x_946);
lean_dec(x_944);
x_948 = l_Int_toNat(x_939);
lean_dec(x_939);
x_949 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0;
x_950 = 32;
lean_inc(x_948);
x_951 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_950, x_948, x_949);
x_952 = l_Lean_Widget_TaggedText_appendText___redArg(x_951, x_942);
x_953 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_940);
lean_inc(x_943);
x_954 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_943, x_943, x_940, x_953);
x_955 = l_List_drop___redArg(x_940, x_943);
lean_dec(x_943);
x_956 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_952, x_954);
if (lean_is_scalar(x_945)) {
 x_957 = lean_alloc_ctor(0, 3, 0);
} else {
 x_957 = x_945;
}
lean_ctor_set(x_957, 0, x_956);
lean_ctor_set(x_957, 1, x_955);
lean_ctor_set(x_957, 2, x_948);
x_958 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_934, x_935, x_933, x_936);
x_2 = x_958;
x_3 = x_957;
goto _start;
}
else
{
lean_object* x_960; uint32_t x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; 
x_960 = l_Lean_Widget_instInhabitedTaggedText_default___closed__0;
x_961 = 32;
x_962 = lean_int_sub(x_939, x_946);
lean_dec(x_946);
lean_dec(x_939);
x_963 = l_Int_toNat(x_962);
lean_dec(x_962);
x_964 = lean_string_pushn(x_960, x_961, x_963);
lean_inc_ref(x_964);
x_965 = l_Lean_Widget_TaggedText_appendText___redArg(x_964, x_942);
x_966 = lean_string_length(x_964);
lean_dec_ref(x_964);
x_967 = lean_nat_add(x_944, x_966);
lean_dec(x_966);
lean_dec(x_944);
x_968 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_940);
lean_inc(x_943);
x_969 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_943, x_943, x_940, x_968);
x_970 = l_List_drop___redArg(x_940, x_943);
lean_dec(x_943);
x_971 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_965, x_969);
if (lean_is_scalar(x_945)) {
 x_972 = lean_alloc_ctor(0, 3, 0);
} else {
 x_972 = x_945;
}
lean_ctor_set(x_972, 0, x_971);
lean_ctor_set(x_972, 1, x_970);
lean_ctor_set(x_972, 2, x_967);
x_973 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_934, x_935, x_933, x_936);
x_2 = x_973;
x_3 = x_972;
goto _start;
}
}
block_988:
{
if (x_976 == 0)
{
goto block_975;
}
else
{
lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; 
lean_dec(x_939);
x_977 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_977);
x_978 = lean_ctor_get(x_3, 1);
lean_inc(x_978);
x_979 = lean_ctor_get(x_3, 2);
lean_inc(x_979);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 x_980 = x_3;
} else {
 lean_dec_ref(x_3);
 x_980 = lean_box(0);
}
x_981 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0;
lean_inc(x_940);
lean_inc(x_978);
x_982 = l___private_Init_Data_List_Impl_0__List_takeTR_go(lean_box(0), x_978, x_978, x_940, x_981);
x_983 = l_List_drop___redArg(x_940, x_978);
lean_dec(x_978);
x_984 = l_List_foldl___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__2(x_977, x_982);
if (lean_is_scalar(x_980)) {
 x_985 = lean_alloc_ctor(0, 3, 0);
} else {
 x_985 = x_980;
}
lean_ctor_set(x_985, 0, x_984);
lean_ctor_set(x_985, 1, x_983);
lean_ctor_set(x_985, 2, x_979);
x_986 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_934, x_935, x_933, x_936);
x_2 = x_986;
x_3 = x_985;
goto _start;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_5 = lean_box(1);
x_6 = 0;
x_7 = lean_nat_to_int(x_3);
x_8 = lean_unsigned_to_nat(0u);
x_9 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_9, 0, x_1);
lean_ctor_set(x_9, 1, x_7);
lean_ctor_set(x_9, 2, x_8);
x_10 = lean_box(0);
x_11 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_11, 0, x_9);
lean_ctor_set(x_11, 1, x_10);
x_12 = lean_alloc_ctor(0, 2, 1);
lean_ctor_set(x_12, 0, x_5);
lean_ctor_set(x_12, 1, x_11);
lean_ctor_set_uint8(x_12, sizeof(void*)*2, x_6);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_10);
x_14 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1(x_2, x_13, x_4);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_prettyTagged(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_4 = l_Lean_Widget_TaggedText_prettyTagged___closed__0;
x_5 = l_Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0(x_1, x_3, x_2, x_4);
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
lean_dec_ref(x_5);
x_7 = lean_ctor_get(x_6, 0);
lean_inc_ref(x_7);
lean_dec(x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint32_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint32(x_1);
lean_dec(x_1);
x_5 = l___private_Init_Data_Nat_Basic_0__Nat_repeatTR_loop___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__1(x_4, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_prettyTagged___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Widget_TaggedText_prettyTagged(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0(x_1, x_2, x_3, x_4);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_1);
x_7 = l___private_Init_Data_Format_Basic_0__Std_Format_pushGroup___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__3(x_6, x_2, x_3, x_4, x_5);
lean_dec(x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___lam__0(x_1, x_5, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_stripTags_go___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = lean_array_get_size(x_2);
x_4 = lean_unsigned_to_nat(0u);
x_5 = lean_nat_dec_eq(x_3, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
x_6 = l_Lean_Widget_instInhabitedTaggedText___closed__0;
x_7 = l_Array_back_x21___redArg(x_6, x_2);
switch (lean_obj_tag(x_7)) {
case 0:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
lean_dec(x_3);
x_8 = lean_ctor_get(x_7, 0);
lean_inc_ref(x_8);
lean_dec_ref(x_7);
x_9 = lean_string_append(x_1, x_8);
lean_dec_ref(x_8);
x_10 = lean_array_pop(x_2);
x_1 = x_9;
x_2 = x_10;
goto _start;
}
case 1:
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
lean_dec(x_3);
x_12 = lean_ctor_get(x_7, 0);
lean_inc_ref(x_12);
lean_dec_ref(x_7);
x_13 = lean_array_pop(x_2);
x_14 = l_Array_reverse___redArg(x_12);
x_15 = l_Array_append___redArg(x_13, x_14);
lean_dec_ref(x_14);
x_2 = x_15;
goto _start;
}
default: 
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_17 = lean_ctor_get(x_7, 1);
lean_inc_ref(x_17);
lean_dec_ref(x_7);
x_18 = lean_unsigned_to_nat(1u);
x_19 = lean_nat_sub(x_3, x_18);
lean_dec(x_3);
x_20 = lean_array_set(x_2, x_19, x_17);
lean_dec(x_19);
x_2 = x_20;
goto _start;
}
}
}
else
{
lean_dec(x_3);
lean_dec_ref(x_2);
return x_1;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_stripTags_go(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_stripTags_go___redArg(x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_TaggedText_stripTags___redArg___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_stripTags___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lean_Widget_instInhabitedTaggedText_default___closed__0;
x_3 = l_Lean_Widget_TaggedText_stripTags___redArg___closed__0;
x_4 = lean_array_push(x_3, x_1);
x_5 = l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_stripTags_go___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_stripTags(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Widget_TaggedText_stripTags___redArg(x_2);
return x_3;
}
}
lean_object* initialize_Lean_Server_Rpc_Basic(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Widget_TaggedText(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Server_Rpc_Basic(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Widget_instInhabitedTaggedText_default___closed__0 = _init_l_Lean_Widget_instInhabitedTaggedText_default___closed__0();
lean_mark_persistent(l_Lean_Widget_instInhabitedTaggedText_default___closed__0);
l_Lean_Widget_instInhabitedTaggedText_default___closed__1 = _init_l_Lean_Widget_instInhabitedTaggedText_default___closed__1();
lean_mark_persistent(l_Lean_Widget_instInhabitedTaggedText_default___closed__1);
l_Lean_Widget_instInhabitedTaggedText___closed__0 = _init_l_Lean_Widget_instInhabitedTaggedText___closed__0();
lean_mark_persistent(l_Lean_Widget_instInhabitedTaggedText___closed__0);
l_Lean_Widget_instReprTaggedText_repr___redArg___closed__0 = _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__0();
lean_mark_persistent(l_Lean_Widget_instReprTaggedText_repr___redArg___closed__0);
l_Lean_Widget_instReprTaggedText_repr___redArg___closed__1 = _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__1();
lean_mark_persistent(l_Lean_Widget_instReprTaggedText_repr___redArg___closed__1);
l_Lean_Widget_instReprTaggedText_repr___redArg___closed__2 = _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__2();
lean_mark_persistent(l_Lean_Widget_instReprTaggedText_repr___redArg___closed__2);
l_Lean_Widget_instReprTaggedText_repr___redArg___closed__3 = _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__3();
lean_mark_persistent(l_Lean_Widget_instReprTaggedText_repr___redArg___closed__3);
l_Lean_Widget_instReprTaggedText_repr___redArg___closed__4 = _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__4();
lean_mark_persistent(l_Lean_Widget_instReprTaggedText_repr___redArg___closed__4);
l_Lean_Widget_instReprTaggedText_repr___redArg___closed__5 = _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__5();
lean_mark_persistent(l_Lean_Widget_instReprTaggedText_repr___redArg___closed__5);
l_Lean_Widget_instReprTaggedText_repr___redArg___closed__6 = _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__6();
lean_mark_persistent(l_Lean_Widget_instReprTaggedText_repr___redArg___closed__6);
l_Lean_Widget_instReprTaggedText_repr___redArg___closed__7 = _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__7();
lean_mark_persistent(l_Lean_Widget_instReprTaggedText_repr___redArg___closed__7);
l_Lean_Widget_instReprTaggedText_repr___redArg___closed__8 = _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__8();
lean_mark_persistent(l_Lean_Widget_instReprTaggedText_repr___redArg___closed__8);
l_Lean_Widget_instReprTaggedText_repr___redArg___closed__9 = _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__9();
lean_mark_persistent(l_Lean_Widget_instReprTaggedText_repr___redArg___closed__9);
l_Lean_Widget_instReprTaggedText_repr___redArg___closed__10 = _init_l_Lean_Widget_instReprTaggedText_repr___redArg___closed__10();
lean_mark_persistent(l_Lean_Widget_instReprTaggedText_repr___redArg___closed__10);
l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0___closed__0 = _init_l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0___closed__0();
lean_mark_persistent(l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0___closed__0);
l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0___closed__1 = _init_l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0___closed__1();
lean_mark_persistent(l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__0___closed__1);
l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___closed__0 = _init_l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___closed__0();
lean_mark_persistent(l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___closed__0);
l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1___closed__0 = _init_l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1___closed__0();
lean_mark_persistent(l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__1___closed__0);
l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2___closed__0 = _init_l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2___closed__0();
lean_mark_persistent(l_Lean_Widget_instFromJsonTaggedText_fromJson___redArg___lam__2___closed__0);
l_Lean_Widget_instToJsonTaggedText_toJson___redArg___closed__0 = _init_l_Lean_Widget_instToJsonTaggedText_toJson___redArg___closed__0();
lean_mark_persistent(l_Lean_Widget_instToJsonTaggedText_toJson___redArg___closed__0);
l_Lean_Widget_TaggedText_appendText___redArg___closed__0 = _init_l_Lean_Widget_TaggedText_appendText___redArg___closed__0();
lean_mark_persistent(l_Lean_Widget_TaggedText_appendText___redArg___closed__0);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__6 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__6();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__6);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__5 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__5();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__5);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__4 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__4();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__4);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__3 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__3();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__3);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__2 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__2();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__2);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__1 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__1();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__1);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__0 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__0();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__0);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__7 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__7();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__7);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__8 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__8();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__8);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__9);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__18 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__18();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__18);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__13 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__13();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__13);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__12 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__12();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__12);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__11 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__11();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__11);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__16 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__16();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__16);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__10 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__10();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__10);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__14 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__14();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__14);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__15 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__15();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__15);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__17 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__17();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__17);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__19 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__19();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__19);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__20 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__20();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__20);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__21 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__21();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__21);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__30 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__30();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__30);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__25 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__25();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__25);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__24 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__24();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__24);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__23 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__23();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__23);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__28 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__28();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__28);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__22 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__22();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__22);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__26 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__26();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__26);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__27 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__27();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__27);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__29 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__29();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__29);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__31 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__31();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__31);
l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__32 = _init_l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__32();
lean_mark_persistent(l_Lean_Widget_TaggedText_instRpcEncodable___redArg___closed__32);
l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default___closed__0 = _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default___closed__0();
lean_mark_persistent(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default___closed__0);
l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default___closed__1 = _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default___closed__1();
lean_mark_persistent(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default___closed__1);
l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default = _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default();
lean_mark_persistent(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState_default);
l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState = _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState();
lean_mark_persistent(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instInhabitedTaggedState);
l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0 = _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0();
lean_mark_persistent(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___closed__0);
l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___boxed__const__1 = _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___boxed__const__1();
lean_mark_persistent(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__2___boxed__const__1);
l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4___closed__0 = _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4___closed__0();
lean_mark_persistent(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__4___closed__0);
l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0 = _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0();
lean_mark_persistent(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___lam__6___closed__0);
l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___closed__0 = _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___closed__0();
lean_mark_persistent(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState___closed__0);
l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState = _init_l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState();
lean_mark_persistent(l___private_Lean_Widget_TaggedText_0__Lean_Widget_TaggedText_instMonadPrettyFormatStateMTaggedState);
l_Lean_Widget_TaggedText_prettyTagged___closed__0 = _init_l_Lean_Widget_TaggedText_prettyTagged___closed__0();
lean_mark_persistent(l_Lean_Widget_TaggedText_prettyTagged___closed__0);
l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0 = _init_l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0();
lean_mark_persistent(l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__0);
l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__1 = _init_l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__1();
lean_mark_persistent(l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__1);
l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__2 = _init_l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__2();
lean_mark_persistent(l___private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1___closed__2);
l_panic___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__4___closed__0 = _init_l_panic___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__4___closed__0();
lean_mark_persistent(l_panic___at___00__private_Init_Data_Format_Basic_0__Std_Format_be___at___00Std_Format_prettyM___at___00Lean_Widget_TaggedText_prettyTagged_spec__0_spec__1_spec__4___closed__0);
l_Lean_Widget_TaggedText_stripTags___redArg___closed__0 = _init_l_Lean_Widget_TaggedText_stripTags___redArg___closed__0();
lean_mark_persistent(l_Lean_Widget_TaggedText_stripTags___redArg___closed__0);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
